diff options
author | Thomas White <taw@bitwiz.org.uk> | 2010-09-30 18:22:27 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:00 +0100 |
commit | 1300f72db9ffd953a65969bf76ffef5669ddef80 (patch) | |
tree | 259137e49529706b7208552e16a245fa6aba6be1 | |
parent | b493440b312b1d08b3f70277fe9b78ce33a8e033 (diff) |
Only whinge once if detector geometry is bad
-rw-r--r-- | src/detector.c | 2 |
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; |