]> git.wh0rd.org - fontconfig.git/blobdiff - src/fcpat.c
Pass directory information around in FcCache structure. Freeze charsets.
[fontconfig.git] / src / fcpat.c
index b40d3c0752e3d788be583afcd4a0ed4953347810..9cd01a02a9303c10ed0d9c578ed850b5d7df8dda 100644 (file)
@@ -491,7 +491,15 @@ FcPatternObjectAddWithBinding  (FcPattern  *p,
      * Make sure the stored type is valid for built-in objects
      */
     if (!FcObjectValidType (object, value.type))
+    {
+       if (FcDebug() & FC_DBG_OBJTYPES)
+       {
+           printf ("FcPattern object %s does not accept value ",
+                   FcObjectName (object));
+           FcValuePrint (value);
+       }
        goto bail1;
+    }
 
     new->value = value;
     new->binding = binding;