summaryrefslogtreecommitdiff
path: root/src/thumbnail.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/thumbnail.c')
-rw-r--r--src/thumbnail.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/thumbnail.c b/src/thumbnail.c
index c104cb8..74cc033 100644
--- a/src/thumbnail.c
+++ b/src/thumbnail.c
@@ -92,7 +92,11 @@ void init_thumbnail_mode(void)
mode = "thumbnail";
- td.font_main = gib_imlib_load_font(opt.font);
+ if (opt.font)
+ td.font_main = gib_imlib_load_font(opt.font);
+
+ if (!td.font_main)
+ td.font_main = gib_imlib_load_font(DEFAULT_FONT);
if (opt.title_font) {
int fh, fw;