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:
parent
bf0c80fc49
commit
551b6b2cd7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue