From 9443171625be8dca6b27a1de9df1ee5b4deb8854 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 16 Jul 2019 17:10:06 +0200 Subject: hdfsee: Disallow changing image if geometry file was given --- src/dw-hdfsee.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/dw-hdfsee.c') diff --git a/src/dw-hdfsee.c b/src/dw-hdfsee.c index c9b1cd88..31878594 100644 --- a/src/dw-hdfsee.c +++ b/src/dw-hdfsee.c @@ -2518,8 +2518,12 @@ static GtkWidget *displaywindow_addhdfgroup(struct hdfile *hdfile, dw, rgp, selectme); gtk_menu_item_set_submenu(GTK_MENU_ITEM(item), sub); - } else if ( is_image[i] ) { - + /* No changing image if we're using multiple events, + * or if we have a geometry file (already saying where to + * find the data. */ + } else if ( is_image[i] && (dw->ev == NULL) + && (dw->original_geom == NULL) ) + { struct newhdf *nh; item = gtk_radio_menu_item_new_with_label(*rgp, -- cgit v1.2.3