aboutsummaryrefslogtreecommitdiff
path: root/src/diffraction.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-06-05 15:40:10 +0200
committerThomas White <taw@bitwiz.org.uk>2010-06-05 15:40:10 +0200
commit60c2e01b0faa0ff4955d9ffe1e99c7c8cffc2c5c (patch)
tree8f1920b724f7598c11e9dcf2028656613cec8e6d /src/diffraction.c
parentea369696428af621a3acfd53791d9c98d4402584 (diff)
Fix/add exit paths
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);