Fixup: Handle patterns without family
Pointed out by Akira Tagoh.
This commit is contained in:
parent
51d40491fc
commit
e117d6768c
|
@ -525,6 +525,8 @@ FcCompareDataInit (FcPattern *pat,
|
|||
free);
|
||||
|
||||
elt = FcPatternObjectFindElt (pat, FC_FAMILY_OBJECT);
|
||||
if (elt)
|
||||
{
|
||||
for (l = FcPatternEltValues(elt), i = 0; l; l = FcValueListNext(l), i++)
|
||||
{
|
||||
key = FcValueString (&l->value);
|
||||
|
@ -546,6 +548,7 @@ FcCompareDataInit (FcPattern *pat,
|
|||
e->strong_value = i;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
data->family_hash = table;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue