diff options
author | Thomas White <taw@physics.org> | 2019-07-16 17:10:06 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2019-07-16 17:10:06 +0200 |
commit | 9443171625be8dca6b27a1de9df1ee5b4deb8854 (patch) | |
tree | 5c67b7e64772a47e9a6dc87d92928c08af7c2f0c /src | |
parent | db55b9f2b589d07d5abb696a62fe5db57516ae26 (diff) |
hdfsee: Disallow changing image if geometry file was given
Diffstat (limited to 'src')
-rw-r--r-- | src/dw-hdfsee.c | 8 |
1 files changed, 6 insertions, 2 deletions
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, |