[gimp/metadata-browser] Revert "app (histogram): Fix bad loop condition"



commit aec655136998fc1217bfe77300c8c34932858859
Author: Mukund Sivaraman <muks banu com>
Date:   Thu Oct 13 10:43:09 2011 +0530

    Revert "app (histogram): Fix bad loop condition"
    
    This reverts commit 23907a297f891e7ff05c59546d28580e2c6b7743.

 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 395ec57..0bb6cc9 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]