diff options
Diffstat (limited to 'src/detector.c')
-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; |