diff options
Diffstat (limited to 'libcrystfel/src/geometry.c')
-rw-r--r-- | libcrystfel/src/geometry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/geometry.c b/libcrystfel/src/geometry.c index 5b2107d1..fc42a8de 100644 --- a/libcrystfel/src/geometry.c +++ b/libcrystfel/src/geometry.c @@ -332,7 +332,7 @@ static Reflection *check_reflection(struct image *image, Crystal *cryst, /* Closest point on Ewald sphere. * Project zl to 0, bit of a hack... */ - const double zlp0 = zl>0?zl:0; + const double zlp0 = zl<0?zl:0; exerr2 = (x-xl)*(x-xl) + (y-yl)*(y-yl) + (z-zl)*(z-zl); /* Weighted average between projected lattice point |