From: Keith Packard Date: Fri, 1 Sep 2006 01:16:00 +0000 (-0700) Subject: Allow FcTypeLangSet to match either FcTypeLangSet or FcTypeString. X-Git-Tag: 2.3.96~27 X-Git-Url: https://git.wh0rd.org/?p=fontconfig.git;a=commitdiff_plain;h=551b6b2cd7d94dd90a9eb22bdb752f264afc48ce Allow FcTypeLangSet to match either FcTypeLangSet or FcTypeString. Applications explicitly setting FC_LANG with string would fail due to typechecking disallowing this case. --- 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;