diff options
author | Thomas White <taw@physics.org> | 2014-12-14 15:15:14 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2014-12-14 15:15:26 +0100 |
commit | a365b27b2186dfd7b3e7f9c10dac5144addd290e (patch) | |
tree | 06ad6dab7c09e57f64332a90fae44ec60672227c /src/dw-hdfsee.c | |
parent | 96dba6ec96dc90bd5795b9ca0517c82fa5aad2c6 (diff) |
hdfsee: Select the correct event at the start
Diffstat (limited to 'src/dw-hdfsee.c')
-rw-r--r-- | src/dw-hdfsee.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dw-hdfsee.c b/src/dw-hdfsee.c index 0475126d..78f691b6 100644 --- a/src/dw-hdfsee.c +++ b/src/dw-hdfsee.c @@ -2544,8 +2544,8 @@ DisplayWindow *displaywindow_open(char *filename, char *geom_filename, if ( dw->multi_event ) { struct event *ev; if ( event != NULL ) { - dw->curr_event = 0; /* Probably wrong */ ev = get_event_from_event_string(event); + dw->curr_event = find_event(ev, dw->ev_list); } else { dw->curr_event = 0; ev = dw->ev_list->events[dw->curr_event]; @@ -2645,7 +2645,7 @@ DisplayWindow *displaywindow_open(char *filename, char *geom_filename, if ( dw->image->det == dw->simple_geom ) { displaywindow_update_menus(dw, element); } else { - if ( dw->multi_event != 0 ) { + if ( dw->multi_event ) { displaywindow_update_event_menu(dw, dw->ev_list, dw->curr_event); } |