[gimp] app: fix crashing typo in previous commit



commit a7cd5952412f0e54e81b55ecebd9d87334392baf
Author: Michael Natterer <mitch gimp org>
Date:   Sun Feb 23 01:28:34 2014 +0100

    app: fix crashing typo in previous commit

 app/core/gimptempbuf.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/core/gimptempbuf.c b/app/core/gimptempbuf.c
index 42bae76..f03e735 100644
--- a/app/core/gimptempbuf.c
+++ b/app/core/gimptempbuf.c
@@ -97,7 +97,7 @@ gimp_temp_buf_new_from_pixbuf (GdkPixbuf  *pixbuf,
   if (gimp_pixbuf_get_format (pixbuf) != format)
     fish = babl_fish (gimp_pixbuf_get_format (pixbuf), format);
 
-  for (i = 0; i < height; ++i)
+  for (i = 0; i < height; i++)
     {
       if (fish)
         babl_process (fish, pixels, data, width);
@@ -320,7 +320,7 @@ gimp_temp_buf_create_pixbuf (GimpTempBuf *temp_buf)
   if (format != gimp_pixbuf_get_format (pixbuf))
     fish = babl_fish (format, gimp_pixbuf_get_format (pixbuf));
 
-  for (i = 0; i <= height; ++i)
+  for (i = 0; i < height; i++)
     {
       if (fish)
         babl_process (fish, data, pixels, width);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]