From ae19e1ccf4c31abcfaa543aba9fe792129e06d6e Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 15 May 2015 16:23:52 +0200 Subject: Don't attempt to calculate detector position without detector structure ... even if we are updating a previous reflection --- libcrystfel/src/geometry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcrystfel/src/geometry.c') 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, -- cgit v1.2.3