From 8f43ca33d5edd9f75660174870e16afe8b9913bd Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sun, 26 Sep 2010 21:59:16 +0200 Subject: Describe and honour no_index --- src/peaks.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/peaks.c') 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 ) { -- cgit v1.2.3