[gimp/gimp-2-6] Bug 567466 – PNG comment not found if more than 1 tEXt chunks
- From: Sven Neumann <neo src gnome org>
- To: svn-commits-list gnome org
- Subject: [gimp/gimp-2-6] Bug 567466 – PNG comment not found if more than 1 tEXt chunks
- Date: Thu, 16 Jul 2009 20:29:39 +0000 (UTC)
commit ac95acb4ddde2e4dc7c53e0b01a7ef1322576082
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.
(cherry picked from commit 65c21b6bc3eb1455cbd7f890b568d3504f7250f4)
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 96b9b39..8ac2fb0 100644
--- a/plug-ins/common/file-png.c
+++ b/plug-ins/common/file-png.c
@@ -1032,7 +1032,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]