From 52de34ffed3d331ce4ae8e68ae3fdd3776e6e833 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 5 Mar 2015 14:47:32 +0100 Subject: copy_geom(): fix furthest_out_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 e8a6a80c..1897ed49 100644 --- a/libcrystfel/src/detector.c +++ b/libcrystfel/src/detector.c @@ -1784,6 +1784,10 @@ struct detector *copy_geom(const struct detector *in) } } + if ( &in->panels[i] == in->furthest_out_panel ) { + out->furthest_out_panel = &out->panels[i]; + } + } for ( i=0; in_rigid_groups; i++ ) { -- cgit v1.2.3