diff options
Diffstat (limited to 'src/peaks.c')
-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 ) { |