summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@neko.keithp.com>2006-08-31 18:16:00 -0700
committerKeith Packard <keithp@neko.keithp.com>2006-08-31 18:16:00 -0700
commit551b6b2cd7d94dd90a9eb22bdb752f264afc48ce (patch)
treef2e4c8929aed1f27908796d39dfc374096510c6e
parentbf0c80fc4996157dda7bed8b8b2e4c8a13611ada (diff)
downloadfontconfig-551b6b2cd7d94dd90a9eb22bdb752f264afc48ce.tar.gz
Allow FcTypeLangSet to match either FcTypeLangSet or FcTypeString.
Applications explicitly setting FC_LANG with string would fail due to typechecking disallowing this case.
-rw-r--r--src/fcname.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fcname.c b/src/fcname.c
index 74411d7..f55190d 100644
--- a/src/fcname.c
+++ b/src/fcname.c
@@ -301,6 +301,10 @@ FcObjectValidType (FcObject object, FcType type)
if (type == FcTypeDouble || type == FcTypeInteger)
return FcTrue;
break;
+ case FcTypeLangSet:
+ if (type == FcTypeLangSet || type == FcTypeString)
+ return FcTrue;
+ break;
default:
if (type == t->type)
return FcTrue;