aboutsummaryrefslogtreecommitdiff
path: root/src/detector.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-09-30 18:22:27 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:00 +0100
commit1300f72db9ffd953a65969bf76ffef5669ddef80 (patch)
tree259137e49529706b7208552e16a245fa6aba6be1 /src/detector.c
parentb493440b312b1d08b3f70277fe9b78ce33a8e033 (diff)
Only whinge once if detector geometry is bad
Diffstat (limited to 'src/detector.c')
-rw-r--r--src/detector.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/detector.c b/src/detector.c
index 86d806e3..151bac61 100644
--- a/src/detector.c
+++ b/src/detector.c
@@ -415,9 +415,11 @@ struct detector *get_detector_geometry(const char *filename)
if ( find_panel(det, x, y) == NULL ) {
ERROR("Detector geometry invalid: contains gaps.\n");
reject = 1;
+ goto out;
}
}
}
+out:
det->max_x = max_x;
det->max_y = max_y;