diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/dw-hdfsee.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dw-hdfsee.c b/src/dw-hdfsee.c index 34c7d166..87c23f4e 100644 --- a/src/dw-hdfsee.c +++ b/src/dw-hdfsee.c @@ -1948,7 +1948,7 @@ static void numbers_update(DisplayWindow *dw) gtk_label_set_text(GTK_LABEL(dw->numbers_window->feat), text); - } else { + } else if ( fp != NULL ) { char text[64]; @@ -1957,6 +1957,8 @@ static void numbers_update(DisplayWindow *dw) strncat(text, fp->name, 20); gtk_label_set_text(GTK_LABEL(dw->numbers_window->feat), text); + } else { + gtk_label_set_text(GTK_LABEL(dw->numbers_window->feat), "-"); } } |