aboutsummaryrefslogtreecommitdiff
path: root/src/peaks.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-12-05 18:10:31 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:07 +0100
commit316c730bc3d001ff8def51ceac42e3b4cd074e1a (patch)
treeca28ea7bdfa674286b8951f764756078841803e5 /src/peaks.c
parent9c54c3d3f8824f5817c716eba5990c46489f9df1 (diff)
Fix silly bug in integrate_peak()
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 263040dd..1ad29a03 100644
--- a/src/peaks.c
+++ b/src/peaks.c
@@ -288,7 +288,7 @@ int integrate_peak(struct image *image, int xp, int yp,
} else {
*xc = (float)xp;
*yc = (float)yp;
- *intensity = 0;
+ *intensity = total;
}
if ( pbg != NULL ) {