aboutsummaryrefslogtreecommitdiff
path: root/src/diffraction.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/diffraction.c')
-rw-r--r--src/diffraction.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/diffraction.c b/src/diffraction.c
index b3e80e8f..9bd7c4e5 100644
--- a/src/diffraction.c
+++ b/src/diffraction.c
@@ -248,6 +248,7 @@ struct rvec get_q(struct image *image, unsigned int xs, unsigned int ys,
const unsigned int y = ys / sampling; /* Integer part only */
p = find_panel(&image->det, x, y);
+ assert(p != NULL);
rx = ((float)xs - (sampling*p->cx)) / (sampling * p->res);
ry = ((float)ys - (sampling*p->cy)) / (sampling * p->res);