diff options
-rw-r--r-- | src/compare_hkl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compare_hkl.c b/src/compare_hkl.c index c3e7a547..f0484ede 100644 --- a/src/compare_hkl.c +++ b/src/compare_hkl.c @@ -464,6 +464,7 @@ static int get_bin(struct shells *s, Reflection *refl, UnitCell *cell) /* Allow for slight rounding errors */ if ( (bin == -1) && (d <= s->rmins[0]) ) bin = 0; + if ( (bin == -1) && (d >= s->rmaxs[s->nshells-1]) ) bin = 0; assert(bin != -1); return bin; |