aboutsummaryrefslogtreecommitdiff
path: root/src/dw-hdfsee.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2016-07-28 16:58:47 +0200
committerThomas White <taw@physics.org>2016-07-29 11:53:52 +0200
commitb34ad381ebc6eece4d943ecbd56ace0df3089ba2 (patch)
treefa8dc983463719a1f2260957a781338b68fcdf57 /src/dw-hdfsee.c
parent3de724847a8df097f31df5a2f5aa5ff11a5e239d (diff)
hdfsee: Fix crash because of panel name
Diffstat (limited to 'src/dw-hdfsee.c')
-rw-r--r--src/dw-hdfsee.c4
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), "-");
}
}