diff options
author | Valerio Mariani <valerio.mariani@desy.de> | 2014-12-01 17:41:27 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2014-12-01 18:17:25 +0100 |
commit | 45da3ff62029e2416afb8e46e846c7ae910f0147 (patch) | |
tree | 639a609a674f8138598670ac14659ef5872e2a62 /src/dw-hdfsee.c | |
parent | e3e8f041e2e541d8e20cab7c755f2ad03873df54 (diff) |
Fix for geometry saving
Diffstat (limited to 'src/dw-hdfsee.c')
-rw-r--r-- | src/dw-hdfsee.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dw-hdfsee.c b/src/dw-hdfsee.c index 9976cd88..55515f2c 100644 --- a/src/dw-hdfsee.c +++ b/src/dw-hdfsee.c @@ -1190,6 +1190,9 @@ static int save_geometry_file(DisplayWindow *dw) output_filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER (d)); w = write_detector_geometry(dw->geom_filename, output_filename, dw->image->det); + if ( w != 0 ) { + ERROR("Error saving geometry!\n"); + } gtk_widget_destroy(d); g_free(output_filename); return w; @@ -2481,7 +2484,7 @@ DisplayWindow *displaywindow_open(char *filename, char *geom_filename, dw->multi_event = 0; dw->curr_event = 0; dw->ev_list = NULL; - if ( dw->geom_filename != NULL ) { + if ( geom_filename != NULL ) { dw->geom_filename = strdup(geom_filename); } else { dw->geom_filename = NULL; |