summaryrefslogtreecommitdiff
path: root/src/fcmatch.c
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2013-09-18 17:31:10 +0900
committerAkira TAGOH <akira@tagoh.org>2013-09-18 17:33:45 +0900
commit5e6b8894ea9d03caabdfc3a6bcd0c402edf840a8 (patch)
treeca76541f1bfdaa8f8603a5959e11b17837cbac98 /src/fcmatch.c
parent7e44a0b5a88e597b33ba9e2cc3a6d4555736db0a (diff)
downloadfontconfig-5e6b8894ea9d03caabdfc3a6bcd0c402edf840a8.tar.gz
Copy all values from the font to the pattern if the pattern doesn't have the element
Diffstat (limited to 'src/fcmatch.c')
-rw-r--r--src/fcmatch.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fcmatch.c b/src/fcmatch.c
index dec92b9..627aa1a 100644
--- a/src/fcmatch.c
+++ b/src/fcmatch.c
@@ -552,14 +552,16 @@ FcFontRenderPrepare (FcConfig *config,
continue;
}
+ FcPatternObjectAdd (new, fe->object, v, FcFalse);
}
else
{
if (fel)
goto copy_lang;
- v = FcValueCanonicalize(&FcPatternEltValues (fe)->value);
+ FcPatternObjectListAdd (new, fe->object,
+ FcValueListDuplicate (FcPatternEltValues (fe)),
+ FcTrue);
}
- FcPatternObjectAdd (new, fe->object, v, FcFalse);
}
for (i = 0; i < pat->num; i++)
{