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

New commits:
commit 8a119cf205467c20269e7beffde9497ffd277c15
Author: Albert Astals Cid <[email protected]>
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 *));
   }
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to