aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/cell-utils.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-05-12 12:00:22 +0200
committerThomas White <taw@physics.org>2020-05-12 12:00:22 +0200
commit8f2d45bc0636ea4276be193e48d0b89b461444d0 (patch)
treeb93ebcf41300c12caa62738f4dde5e5edec04ad8 /libcrystfel/src/cell-utils.c
parent32c4a7d90af646184ffe75daa5c5cbba3f7738dd (diff)
Fix silly mistake in cell reduction
Diffstat (limited to 'libcrystfel/src/cell-utils.c')
-rw-r--r--libcrystfel/src/cell-utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcrystfel/src/cell-utils.c b/libcrystfel/src/cell-utils.c
index e9e7aaec..b56df2c9 100644
--- a/libcrystfel/src/cell-utils.c
+++ b/libcrystfel/src/cell-utils.c
@@ -1956,12 +1956,12 @@ IntegerMatrix *reduce_g6(struct g6 g, double epsrel)
}
if ( GT(g.E, 0.0) ) {
ijk[1] = -1;
- } else if ( !LT(g.D, 0.0) ) {
+ } else if ( !LT(g.E, 0.0) ) {
z = 1;
}
if ( GT(g.F, 0.0) ) {
ijk[2] = -1;
- } else if ( !LT(g.D, 0.0) ) {
+ } else if ( !LT(g.F, 0.0) ) {
z = 2;
}
if ( ijk[0]*ijk[1]*ijk[2] < 0 ) {