From 6eefb55ebef4717c9b66423c8a525d77fe66e4bb Mon Sep 17 00:00:00 2001 From: Scott Balneaves Date: Tue, 21 May 2013 12:51:01 -0500 Subject: More general fix for #18: actually test if the the font content is empty --- src/terminal-app.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/terminal-app.c b/src/terminal-app.c index baac703..91b3d02 100644 --- a/src/terminal-app.c +++ b/src/terminal-app.c @@ -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)) -- cgit v1.2.1