[gimp/metadata-browser] app (histogram): Fix bad loop condition
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] app (histogram): Fix bad loop condition
- Date: Fri, 2 Dec 2011 02:22:01 +0000 (UTC)
commit 3d3ad2375f293d4f15e94c46670dfa0adaeadd7f
Author: Mukund Sivaraman <muks banu com>
Date: Thu Oct 13 10:39:59 2011 +0530
app (histogram): Fix bad loop condition
app/base/gimphistogram.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/base/gimphistogram.c b/app/base/gimphistogram.c
index 0bb6cc9..395ec57 100644
--- a/app/base/gimphistogram.c
+++ b/app/base/gimphistogram.c
@@ -456,7 +456,7 @@ gimp_histogram_get_threshold (GimpHistogram *histogram,
chist[0] = hist[0];
cmom[0] = 0;
- for (i = 1; i <= maxval; i++)
+ for (i = 1; i < maxval; i++)
{
if (hist[i] > hist_max)
hist_max = hist[i];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]