Add missing FcValueCanonicalize on call to FcPatternAdd.

This commit is contained in:
Patrick Lam 2005-09-16 04:57:18 +00:00
parent 13cdf60753
commit 9fe2bd7ab0
1 changed files with 2 additions and 1 deletions

View 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;
}