From 36fe30c52c909ce2befa130dcabad0800d1c416d Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 5 Mar 2015 17:59:36 +0100 Subject: copy_geom(): fix furthest_in_panel --- libcrystfel/src/detector.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libcrystfel') diff --git a/libcrystfel/src/detector.c b/libcrystfel/src/detector.c index 1897ed49..6df88eaa 100644 --- a/libcrystfel/src/detector.c +++ b/libcrystfel/src/detector.c @@ -1787,6 +1787,10 @@ struct detector *copy_geom(const struct detector *in) if ( &in->panels[i] == in->furthest_out_panel ) { out->furthest_out_panel = &out->panels[i]; } + if ( &in->panels[i] == in->furthest_in_panel ) { + out->furthest_in_panel = &out->panels[i]; + } + } -- cgit v1.2.3