diff options
Diffstat (limited to 'pango/pango-fontmap.c')
-rw-r--r-- | pango/pango-fontmap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pango/pango-fontmap.c b/pango/pango-fontmap.c index c181eb63..e50e440d 100644 --- a/pango/pango-fontmap.c +++ b/pango/pango-fontmap.c @@ -181,7 +181,7 @@ pango_font_map_real_load_fontset (PangoFontMap *fontmap, pango_font_description_set_family_static (tmp_desc, "Sans"); if (!warned_fonts || !g_hash_table_lookup (warned_fonts, ctmp1)) - { + { if (!warned_fonts) warned_fonts = g_hash_table_new (g_str_hash, g_str_equal); @@ -191,7 +191,7 @@ pango_font_map_real_load_fontset (PangoFontMap *fontmap, g_warning ("couldn't load font \"%s\", falling back to \"%s\", " "expect ugly output.", ctmp1, ctmp2); g_free (ctmp2); - } + } g_free (ctmp1); pango_font_map_fontset_add_fonts (fontmap, @@ -215,7 +215,7 @@ pango_font_map_real_load_fontset (PangoFontMap *fontmap, pango_font_description_set_stretch (tmp_desc, PANGO_STRETCH_NORMAL); if (!warned_fonts || !g_hash_table_lookup (warned_fonts, ctmp1)) - { + { g_hash_table_insert (warned_fonts, g_strdup (ctmp1), GINT_TO_POINTER (1)); ctmp2 = pango_font_description_to_string (tmp_desc); |