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)
|
if (type == FcTypeDouble || type == FcTypeInteger)
|
||||||
return FcTrue;
|
return FcTrue;
|
||||||
break;
|
break;
|
||||||
|
case FcTypeLangSet:
|
||||||
|
if (type == FcTypeLangSet || type == FcTypeString)
|
||||||
|
return FcTrue;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
if (type == t->type)
|
if (type == t->type)
|
||||||
return FcTrue;
|
return FcTrue;
|
||||||
|
|
Loading…
Reference in New Issue