diff options
author | Thomas White <taw@bitwiz.org.uk> | 2012-10-02 16:35:29 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2012-10-02 16:35:29 +0200 |
commit | c99176cca2d92dd0a2afa20de1a0a4b1feea6f7c (patch) | |
tree | 5b1f1cd96c0c885df77c14a8dc3ee5d5b0e40988 | |
parent | d9145ab07fec3ca5cc0230337c6fde37c15ead4e (diff) |
Fix obvious bug
-rw-r--r-- | libcrystfel/src/cell-utils.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libcrystfel/src/cell-utils.c b/libcrystfel/src/cell-utils.c index ae06774a..74f33bb2 100644 --- a/libcrystfel/src/cell-utils.c +++ b/libcrystfel/src/cell-utils.c @@ -687,10 +687,11 @@ UnitCell *match_cell(UnitCell *cell_in, UnitCell *template_in, int verbose, new_cell_trans = cell_transform_inverse(new_cell, uncentering); cell_free(new_cell); - cell_set_lattice_type(new_cell, + cell_set_lattice_type(new_cell_trans, cell_get_lattice_type(template_in)); - cell_set_centering(new_cell, cell_get_centering(template_in)); - cell_set_unique_axis(new_cell, + cell_set_centering(new_cell_trans, + cell_get_centering(template_in)); + cell_set_unique_axis(new_cell_trans, cell_get_unique_axis(template_in)); return new_cell_trans; |