diff options
-rw-r--r-- | libcrystfel/src/peaks.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libcrystfel/src/peaks.c b/libcrystfel/src/peaks.c index 2b326cc0..47bec10c 100644 --- a/libcrystfel/src/peaks.c +++ b/libcrystfel/src/peaks.c @@ -707,8 +707,10 @@ void validate_peaks(struct image *image, double min_snr, } if ( saturated ) { - n_sat++; - if ( !use_saturated ) continue; + if ( !use_saturated ) { + n_sat++; + continue; + } } /* It is possible for the centroid to fall outside the image */ |