[poppler] 2 commits - poppler/Dict.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Mon Sep 1 11:42:41 PDT 2008
poppler/Dict.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 1a7b7199112d97e816a099cbc1a5672c83e64156
Author: Albert Astals Cid <aacid at kde.org>
Date: Mon Sep 1 20:42:06 2008 +0200
Add my copyright
diff --git a/poppler/Dict.cc b/poppler/Dict.cc
index 4145ea3..a899bca 100644
--- a/poppler/Dict.cc
+++ b/poppler/Dict.cc
@@ -16,6 +16,7 @@
// Copyright (C) 2005 Kristian Høgsberg <krh at redhat.com>
// Copyright (C) 2006 Krzysztof Kowalczyk <kkowalczyk at gmail.com>
// Copyright (C) 2007-2008 Julien Rebetez <julienr at svn.gnome.org>
+// Copyright (C) 2008 Albert Astals Cid <aacid at kde.org>
//
// To see a description of the changes please see the Changelog file that
// came with your tarball or type make ChangeLog if you are building from git
commit 1fef34782a003f46fceab0d3bed36212bbf32c4c
Author: Albert Astals Cid <aacid at kde.org>
Date: Mon Sep 1 20:35:37 2008 +0200
Find reverse way in Dict
This fixes Greg Stolze - Marriage Of Virtue & Viciousness.pdf
The issue with this pdf is that has a Dict with two entries with the same key
The pdf spec says if that happens, results are undefined, but Acroread uses the
second key while we were using the first, searching backwards we use the second now too and the pdf works
diff --git a/poppler/Dict.cc b/poppler/Dict.cc
index a68134e..4145ea3 100644
--- a/poppler/Dict.cc
+++ b/poppler/Dict.cc
@@ -85,7 +85,7 @@ void Dict::add(char *key, Object *val) {
inline DictEntry *Dict::find(char *key) {
int i;
- for (i = 0; i < length; ++i) {
+ for (i = length - 1; i >=0; --i) {
if (!strcmp(key, entries[i].key))
return &entries[i];
}
More information about the poppler
mailing list