[gimp] Bug 567466 – PNG comment not found if more than 1 tEXt chunks



commit 65c21b6bc3eb1455cbd7f890b568d3504f7250f4
Author: Massimo Valentini <sixtysix inwind it>
Date:   Thu Jul 16 22:24:59 2009 +0200

    Bug 567466 â?? PNG comment not found if more than 1 tEXt chunks
    
    Fix an oversight: only the first tEXt chunk of a PNG was considered,
    though repeatedly, when looking for the comment.

 plug-ins/common/file-png.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/common/file-png.c b/plug-ins/common/file-png.c
index dad2333..f070661 100644
--- a/plug-ins/common/file-png.c
+++ b/plug-ins/common/file-png.c
@@ -1031,7 +1031,7 @@ load_image (const gchar  *filename,
     {
       gchar *comment = NULL;
 
-      for (i = 0; i < num_texts && !comment; i++)
+      for (i = 0; i < num_texts && !comment; i++, text++)
         {
           if (text->key == NULL || strcmp (text->key, "Comment"))
             continue;



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