diff options
author | Valerio mariani <valerio.mariani@desy.de> | 2015-04-23 14:41:02 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-04-30 17:17:56 +0200 |
commit | ca4a6a13c80cfd8c612b6ada47b6500cf9397f7e (patch) | |
tree | a7661a4399a66e2b446efc550456cd5ea712bd60 /src | |
parent | 4b9e0dc9102b2c68107716d2e0d9d76863182679 (diff) |
Hdfsee now quits if event option is used without a geometry file
Diffstat (limited to 'src')
-rw-r--r-- | src/hdfsee.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/hdfsee.c b/src/hdfsee.c index d33f01cc..baf439bd 100644 --- a/src/hdfsee.c +++ b/src/hdfsee.c @@ -302,6 +302,11 @@ int main(int argc, char *argv[]) return 1; } + if ( event != NULL && geom_filename == NULL) { + ERROR("The '--event' option requires geometry file\n"); + return 1; + } + if ( cscale == NULL ) cscale = strdup("colour"); if ( strcmp(cscale, "mono") == 0 ) { colscale = SCALE_MONO; |