aboutsummaryrefslogtreecommitdiff
path: root/src/detector.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/detector.c')
-rw-r--r--src/detector.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/detector.c b/src/detector.c
index 92094639..6a6b260e 100644
--- a/src/detector.c
+++ b/src/detector.c
@@ -34,6 +34,7 @@ int map_position(struct image *image, double dx, double dy,
double y = 0.0;
p = find_panel(&image->det, dx, dy);
+ if ( p == NULL ) return 1;
x = ((double)dx - p->cx);
y = ((double)dy - p->cy);