diff options
author | Thomas White <taw@bitwiz.org.uk> | 2010-06-14 18:50:33 -0700 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:26:50 +0100 |
commit | 6d4420d686800568ddf3210e3f4e66c914944088 (patch) | |
tree | eb5a254d1f0829845dc3e25192b35c46ada150a7 | |
parent | 5eab7bd36ab60f2f1b239f421b8616133703f414 (diff) |
Skip invalid peaks when counting
-rw-r--r-- | src/peaks.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/peaks.c b/src/peaks.c index 21c1f2f3..a2ebeee7 100644 --- a/src/peaks.c +++ b/src/peaks.c @@ -641,6 +641,8 @@ void output_intensities(struct image *image, UnitCell *cell, f = image_get_feature(image->features, i); + if ( f == NULL ) continue; + for ( j=0; j<image->n_hits; j++ ) { double d; |