diff options
author | Thomas White <taw@physics.org> | 2015-03-05 17:59:36 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-03-05 18:07:53 +0100 |
commit | 36fe30c52c909ce2befa130dcabad0800d1c416d (patch) | |
tree | 3a1dec0fa39c30130a9dda684b30cb92db3c1730 /libcrystfel/src/detector.c | |
parent | 7c0f0e9fd834dbde3381cafeabf11a065e6c8de8 (diff) |
copy_geom(): fix furthest_in_panel
Diffstat (limited to 'libcrystfel/src/detector.c')
-rw-r--r-- | libcrystfel/src/detector.c | 4 |
1 files changed, 4 insertions, 0 deletions
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]; + } + } |