aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcrystfel/src/datatemplate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/datatemplate.c b/libcrystfel/src/datatemplate.c
index ac07abda..4f767c45 100644
--- a/libcrystfel/src/datatemplate.c
+++ b/libcrystfel/src/datatemplate.c
@@ -1106,7 +1106,7 @@ DataTemplate *data_template_new_from_string(const char *string_in)
} while ( !done );
- if ( dt->n_panels == -1 ) {
+ if ( dt->n_panels == 0 ) {
ERROR("No panel descriptions in geometry file.\n");
free(dt);
return NULL;