diff options
Diffstat (limited to 'libcrystfel/src/index.c')
-rw-r--r-- | libcrystfel/src/index.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c index 44909347..14b77513 100644 --- a/libcrystfel/src/index.c +++ b/libcrystfel/src/index.c @@ -599,6 +599,12 @@ static int check_cell(IndexingFlags flags, Crystal *cr, UnitCell *target, cell_set_lattice_type(out, cell_get_lattice_type(target)); cell_set_unique_axis(out, cell_get_unique_axis(target)); + /* Correct P to R centering, for the same reason */ + if ( (cell_get_centering(target) == 'R') + && (cell_get_centering(out) == 'P') ) { + cell_set_centering(out, 'R'); + } + return 0; } |