diff options
author | Thomas White <taw@bitwiz.org.uk> | 2010-09-26 21:59:16 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:00 +0100 |
commit | 8f43ca33d5edd9f75660174870e16afe8b9913bd (patch) | |
tree | bdf3c9f243475fd84fb9ce94c03239360c3a725a /src | |
parent | 744b510c21a38daaed6b3665645ca49e0de361bb (diff) |
Describe and honour no_index
Diffstat (limited to 'src')
-rw-r--r-- | src/peaks.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/peaks.c b/src/peaks.c index 47e02c42..16a5f2a2 100644 --- a/src/peaks.c +++ b/src/peaks.c @@ -203,12 +203,10 @@ int integrate_peak(struct image *image, int xp, int yp, val = image->data[(x+xp)+image->width*(y+yp)]; - if ( do_sa || do_polar ) { + p = find_panel(image->det, x+xp, y+yp); + if ( p == NULL ) return 1; - p = find_panel(image->det, x+xp, y+yp); - if ( p == NULL ) return 1; - - } + if ( p->no_index ) return 1; if ( do_sa ) { |