diff options
author | Thomas White <taw@physics.org> | 2015-05-15 16:23:52 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-05-19 13:57:52 +0200 |
commit | ae19e1ccf4c31abcfaa543aba9fe792129e06d6e (patch) | |
tree | c9a37051bfef22fdf5593057b5c9153f303397da /libcrystfel/src/geometry.c | |
parent | 6e6102c7a6a6c4cc9644d4c03bc7077aa707bfab (diff) |
Don't attempt to calculate detector position without detector structure
... even if we are updating a previous reflection
Diffstat (limited to 'libcrystfel/src/geometry.c')
-rw-r--r-- | libcrystfel/src/geometry.c | 2 |
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, |