diff options
Diffstat (limited to 'pango/pangofc-fontmap.c')
-rw-r--r-- | pango/pangofc-fontmap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c index c7193941..2df9d16c 100644 --- a/pango/pangofc-fontmap.c +++ b/pango/pangofc-fontmap.c @@ -835,8 +835,7 @@ filter_fontset_by_format (FcFontSet *fontset) const char *s; res = FcPatternGetString (fontset->fonts[i], FC_FONTFORMAT, 0, (FcChar8 **)(void*)&s); - g_assert (res == FcResultMatch); - if (pango_fc_is_supported_font_format (s)) + if (res == FcResultMatch && pango_fc_is_supported_font_format (s)) FcFontSetAdd (result, FcPatternDuplicate (fontset->fonts[i])); } |