aboutsummaryrefslogtreecommitdiff
path: root/src/dw-hdfsee.c
diff options
context:
space:
mode:
authorValerio Mariani <valerio.mariani@desy.de>2014-12-01 17:41:27 +0100
committerThomas White <taw@physics.org>2014-12-01 18:17:25 +0100
commit45da3ff62029e2416afb8e46e846c7ae910f0147 (patch)
tree639a609a674f8138598670ac14659ef5872e2a62 /src/dw-hdfsee.c
parente3e8f041e2e541d8e20cab7c755f2ad03873df54 (diff)
Fix for geometry saving
Diffstat (limited to 'src/dw-hdfsee.c')
-rw-r--r--src/dw-hdfsee.c5
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;