From 39640b93cddf9ab9272351cc7917fc158cd4d010 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 27 Sep 2017 14:57:41 +0200 Subject: Fix check for CBF files in event enumeration -1 means the check failed. --- src/im-sandbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/im-sandbox.c') diff --git a/src/im-sandbox.c b/src/im-sandbox.c index 8b7eb29c..e4851320 100644 --- a/src/im-sandbox.c +++ b/src/im-sandbox.c @@ -219,7 +219,7 @@ static struct filename_plus_event *get_pattern(FILE *fh, int config_basename, if ( det->path_dim != 0 || det->dim_dim != 0 ) { - if ( is_cbf_file(filename) ) { + if ( is_cbf_file(filename) == 1 ) { ERROR("Your geometry file is for a multi-event " "format, but this file is in CBF format.\n"); ERROR("Your geometry file probably needs to be " -- cgit v1.2.3