More general fix for #18: actually test if the the font content is empty

master-1.22
Scott Balneaves 2013-05-21 12:51:01 -05:00
parent d447ebdf19
commit 6eefb55ebe
1 changed files with 3 additions and 0 deletions

View File

@ -950,6 +950,9 @@ terminal_app_system_font_notify_cb (GSettings *settings,
font = DEFAULT_MONOSPACE_FONT;
g_assert (font != NULL);
if (font && (strlen (font) == 0)) /* empty string */
font = DEFAULT_MONOSPACE_FONT;
font_desc = pango_font_description_from_string (font);
if (app->system_font_desc &&
pango_font_description_equal (app->system_font_desc, font_desc))