summaryrefslogtreecommitdiff
path: root/src/fcpat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fcpat.c')
-rw-r--r--src/fcpat.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fcpat.c b/src/fcpat.c
index b40d3c07..9cd01a02 100644
--- a/src/fcpat.c
+++ b/src/fcpat.c
@@ -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;