aboutsummaryrefslogtreecommitdiff
path: root/src/peaks.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-08-13 17:35:55 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:55 +0100
commit64d06800fa8a58ba6741322b533040eb63e31ca8 (patch)
tree338ffbc18c114b32d74917c7d9fbd2266350b708 /src/peaks.c
parent9b22aaf9dc7e80547260602175998a8207fe78d9 (diff)
Handle bad pixel mask correctly (?)
Diffstat (limited to 'src/peaks.c')
-rw-r--r--src/peaks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peaks.c b/src/peaks.c
index 383f4663..56a79a05 100644
--- a/src/peaks.c
+++ b/src/peaks.c
@@ -197,7 +197,7 @@ int integrate_peak(struct image *image, int xp, int yp,
/* Veto this peak if we tried to integrate in a bad region */
if ( image->flags != NULL ) {
flags = image->flags[(x+xp)+image->width*(y+yp)];
- if ( !((flags & 0x01) && (flags & 0x04)) ) return 1;
+ if ( !(flags & 0x01) ) return 1;
}
val = image->data[(x+xp)+image->width*(y+yp)];