aboutsummaryrefslogtreecommitdiff
path: root/src/peaks.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/peaks.c')
-rw-r--r--src/peaks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peaks.c b/src/peaks.c
index 9d6634b7..bdc99090 100644
--- a/src/peaks.c
+++ b/src/peaks.c
@@ -522,7 +522,7 @@ void output_intensities(struct image *image, UnitCell *cell,
int n_hits = image->n_hits;
struct reflhit *hits = image->hits;
- if ( image->n_hits != 0 ) find_projected_peaks(image, cell);
+ if ( image->n_hits == 0 ) find_projected_peaks(image, cell);
if ( image->n_hits == 0 ) return;
/* Get exclusive access to the output stream if necessary */