aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-05-15 16:23:52 +0200
committerThomas White <taw@physics.org>2015-05-19 13:57:52 +0200
commitae19e1ccf4c31abcfaa543aba9fe792129e06d6e (patch)
treec9a37051bfef22fdf5593057b5c9153f303397da
parent6e6102c7a6a6c4cc9644d4c03bc7077aa707bfab (diff)
Don't attempt to calculate detector position without detector structure
... even if we are updating a previous reflection
-rw-r--r--libcrystfel/src/geometry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/geometry.c b/libcrystfel/src/geometry.c
index ca91082b..acfc08ee 100644
--- a/libcrystfel/src/geometry.c
+++ b/libcrystfel/src/geometry.c
@@ -245,7 +245,7 @@ static Reflection *check_reflection(struct image *image, Crystal *cryst,
/* If we are updating a previous reflection, assume it stays
* on the same panel and calculate the new position even if it's
* fallen off the edge of the panel. */
- if ( updateme != NULL ) {
+ if ( (image->det != NULL) && (updateme != NULL) ) {
double fs, ss;
locate_peak_on_panel(xl, yl, zl, 1.0/image->lambda,