aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-03-05 14:47:32 +0100
committerThomas White <taw@physics.org>2015-03-05 14:48:33 +0100
commit52de34ffed3d331ce4ae8e68ae3fdd3776e6e833 (patch)
tree90ff74b16e8a230dad8c0a9aecf27be3aecf26dd /libcrystfel
parentc79a8b893ab71c6088adaf28f24c48f7c554549e (diff)
copy_geom(): fix furthest_out_panel
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/detector.c4
1 files changed, 4 insertions, 0 deletions
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; i<in->n_rigid_groups; i++ ) {