]> git.wh0rd.org Git - fontconfig.git/commitdiff
Add missing FcValueCanonicalize on call to FcPatternAdd.
authorPatrick Lam <plam@MIT.EDU>
Fri, 16 Sep 2005 04:57:18 +0000 (04:57 +0000)
committerPatrick Lam <plam@MIT.EDU>
Fri, 16 Sep 2005 04:57:18 +0000 (04:57 +0000)
src/fcpat.c

index 9600d33a614564d2ebc1dae1c4539e6155aae772..84154ea2ec2f63f89fc767e892a06ca225b66e66 100644 (file)
@@ -1215,7 +1215,8 @@ FcPatternDuplicate (const FcPattern *orig)
             FcValueListPtrU(l); 
             l = FcValueListPtrU(l)->next)
            if (!FcPatternAdd (new, FcObjectPtrU((e + i)->object), 
-                               FcValueListPtrU(l)->value, FcTrue))
+                               FcValueCanonicalize(&FcValueListPtrU(l)->value),
+                              FcTrue))
                goto bail1;
     }