Commit 551b6b2c authored by Keith Packard's avatar Keith Packard
Browse files

Allow FcTypeLangSet to match either FcTypeLangSet or FcTypeString.

Applications explicitly setting FC_LANG with string would fail due
to typechecking disallowing this case.
parent bf0c80fc
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment