summaryrefslogtreecommitdiff
path: root/src/thumbnail.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/thumbnail.c')
-rw-r--r--src/thumbnail.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/thumbnail.c b/src/thumbnail.c
index 0c8d00a..6c61322 100644
--- a/src/thumbnail.c
+++ b/src/thumbnail.c
@@ -104,6 +104,9 @@ void init_thumbnail_mode(void)
int fh, fw;
td.font_title = gib_imlib_load_font(opt.title_font);
+ if (!td.font_title)
+ td.font_title = gib_imlib_load_font(DEFAULT_FONT_TITLE);
+
gib_imlib_get_text_size(td.font_title, "W", NULL, &fw, &fh,
IMLIB_TEXT_TO_RIGHT);
title_area_h = fh + 4;