[gimp/gimp-2-8] Bug 732163 - Flipped pixel columns in TGA



commit 8bea95cae77286c8bbfbb714ab909b9c4ad2021e
Author: Massimo Valentini <mvalentini src gnome org>
Date:   Sun Jul 20 16:16:50 2014 +0200

    Bug 732163 - Flipped pixel columns in TGA
    
    do not flip the central columns twice
    
    (cherry picked from commit 35466d6dd0cceaff29109424f6fb94abf1807956)

 plug-ins/common/file-tga.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/common/file-tga.c b/plug-ins/common/file-tga.c
index 9fdd351..768bfca 100644
--- a/plug-ins/common/file-tga.c
+++ b/plug-ins/common/file-tga.c
@@ -773,7 +773,7 @@ flip_line (guchar   *buffer,
 
   alt = buffer + (info->bytes * (info->width - 1));
 
-  for (x = 0; x * 2 <= info->width; x++)
+  for (x = 0; x * 2 < info->width; x++)
     {
       for (s = 0; s < info->bytes; ++s)
         {


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