Allow FcTypeLangSet to match either FcTypeLangSet or FcTypeString.

Applications explicitly setting FC_LANG with string would fail due
to typechecking disallowing this case.
This commit is contained in:
Keith Packard 2006-08-31 18:16:00 -07:00
parent bf0c80fc49
commit 551b6b2cd7
1 changed files with 4 additions and 0 deletions

View File

@ -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;