aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-06-11 10:45:21 -0700
committerThomas White <taw@bitwiz.org.uk>2010-06-11 10:45:21 -0700
commit55a8ef0689f4a4af33c7efa41614dcad12ea47da (patch)
tree3be90d399a91ee46197419aeb99e22b2254369a8
parent8da20816630b540a1a65be3f02159d44c7574a7c (diff)
output_intensities(): Find peaks if none currently present
-rw-r--r--src/peaks.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/peaks.c b/src/peaks.c
index 72002379..9d6634b7 100644
--- a/src/peaks.c
+++ b/src/peaks.c
@@ -522,6 +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 ) return;
/* Get exclusive access to the output stream if necessary */