projects
/
fontconfig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf0c80f
)
Allow FcTypeLangSet to match either FcTypeLangSet or FcTypeString.
author
Keith Packard
<keithp@neko.keithp.com>
Fri, 1 Sep 2006 01:16:00 +0000
(18:16 -0700)
committer
Keith Packard
<keithp@neko.keithp.com>
Fri, 1 Sep 2006 01:16:00 +0000
(18:16 -0700)
Applications explicitly setting FC_LANG with string would fail due
to typechecking disallowing this case.
src/fcname.c
patch
|
blob
|
history
diff --git
a/src/fcname.c
b/src/fcname.c
index 74411d7253234c8eefd02cb42ddfb176ab608782..f55190d9e85bde1da58313e7a53b37213c64c533 100644
(file)
--- 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;