[gimp] Bug 726761 - Alias PIX image encoding broken



commit a5b92424b3625b18da59deb1acac0e77337676fb
Author: Michael Natterer <mitch gimp org>
Date:   Fri Apr 11 15:25:22 2014 +0200

    Bug 726761 - Alias PIX image encoding broken
    
    save_image(): remove bogus "- 1" from the calculation of the height of
    the row of tiles to save. Fixes garbage saved to the last line of all
    PIX files.

 plug-ins/common/file-pix.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plug-ins/common/file-pix.c b/plug-ins/common/file-pix.c
index e5a60bc..015a34a 100644
--- a/plug-ins/common/file-pix.c
+++ b/plug-ins/common/file-pix.c
@@ -584,8 +584,8 @@ save_image (GFile   *file,
 
       for (i = 0; i < height;)
         {
-          rectHeight = (tile_height < (height - i - 1)) ?
-                        tile_height : (height - i - 1);
+          rectHeight = (tile_height < (height - i)) ?
+                        tile_height : (height - i);
 
           gegl_buffer_get (buffer, GEGL_RECTANGLE (0, i, width, rectHeight), 1.0,
                            format, src_base,
@@ -658,8 +658,8 @@ save_image (GFile   *file,
 
       for (i = 0; i < height;)
         {
-          rectHeight = (tile_height < (height - i - 1)) ?
-                        tile_height : (height - i - 1);
+          rectHeight = (tile_height < (height - i)) ?
+                        tile_height : (height - i);
 
           gegl_buffer_get (buffer, GEGL_RECTANGLE (0, i, width, rectHeight), 1.0,
                            format, src_base,


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