[poppler] Branch 'xpdf303merge' - goo/GooList.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Tue Aug 30 11:45:42 PDT 2011


 goo/GooList.cc |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 8a119cf205467c20269e7beffde9497ffd277c15
Author: Albert Astals Cid <aacid at kde.org>
Date:   Tue Aug 30 20:48:40 2011 +0200

    xpdf303: Inserting with a negative i means prepending

diff --git a/goo/GooList.cc b/goo/GooList.cc
index 9342737..a7243ea 100644
--- a/goo/GooList.cc
+++ b/goo/GooList.cc
@@ -61,6 +61,9 @@ void GooList::insert(int i, void *p) {
   if (length >= size) {
     expand();
   }
+  if (i < 0) {
+    i = 0;
+  }
   if (i < length) {
     memmove(data+i+1, data+i, (length - i) * sizeof(void *));
   }


More information about the poppler mailing list