aboutsummaryrefslogtreecommitdiff
path: root/src/dw-hdfsee.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dw-hdfsee.c')
-rw-r--r--src/dw-hdfsee.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dw-hdfsee.c b/src/dw-hdfsee.c
index 3b361207..d253b904 100644
--- a/src/dw-hdfsee.c
+++ b/src/dw-hdfsee.c
@@ -1685,7 +1685,11 @@ static GtkWidget *displaywindow_addhdfgroup(struct hdfile *hdfile,
item = gtk_menu_item_new_with_label(names[i]);
- tmp = hdfile_get_string_value(hdfile, names[i]);
+ if ( hdfile_is_scalar(hdfile, names[i], 0) ) {
+ tmp = hdfile_get_string_value(hdfile, names[i]);
+ } else {
+ tmp = NULL;
+ }
if ( tmp != NULL ) {
GtkWidget *ss;