diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/winwidget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/winwidget.c b/src/winwidget.c index e92f1c3..dae7bc9 100644 --- a/src/winwidget.c +++ b/src/winwidget.c @@ -634,7 +634,7 @@ void winwidget_render_image(winwidget winwid, int resize, int force_alias) feh_draw_info(winwid); if (winwid->errstr) feh_draw_errstr(winwid); - if (opt.title) { + if (opt.title && (current_file != NULL)) { /* title might contain e.g. the zoom specifier -> rewrite */ char *s = slideshow_create_name(FEH_FILE(current_file->data), winwid); winwidget_rename(winwid, s); |