aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/cell.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel/src/cell.c')
-rw-r--r--libcrystfel/src/cell.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libcrystfel/src/cell.c b/libcrystfel/src/cell.c
index a6df931b..38bca61c 100644
--- a/libcrystfel/src/cell.c
+++ b/libcrystfel/src/cell.c
@@ -752,8 +752,11 @@ UnitCell *match_cell(UnitCell *cell, UnitCell *template, int verbose,
/* Test modulus for agreement with moduli of template */
for ( i=0; i<3; i++ ) {
- if ( !within_tolerance(lengths[i], tlen, tols[i]) )
+ if ( !within_tolerance(lengths[i], tlen,
+ tols[i]) )
+ {
continue;
+ }
cand[i][ncand[i]].vec.u = tx;
cand[i][ncand[i]].vec.v = ty;