[poppler] poppler/PageLabelInfo.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Mon Apr 9 10:11:25 PDT 2012


 poppler/PageLabelInfo.cc |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit cef6ac0ebbf8451beaadb3ddb6c991bbb7239432
Author: Fabio D'Urso <fabiodurso at hotmail.it>
Date:   Sun Apr 8 23:15:15 2012 +0200

    FIX: Do not append a NUL character to Unicode page labels

diff --git a/poppler/PageLabelInfo.cc b/poppler/PageLabelInfo.cc
index 1330988..a099d11 100644
--- a/poppler/PageLabelInfo.cc
+++ b/poppler/PageLabelInfo.cc
@@ -5,6 +5,7 @@
 // Copyright (C) 2005-2006 Kristian Høgsberg <krh at redhat.com>
 // Copyright (C) 2005, 2009 Albert Astals Cid <aacid at kde.org>
 // Copyright (C) 2011 Simon Kellner <kellner at kit.edu>
+// Copyright (C) 2012 Fabio D'Urso <fabiodurso at hotmail.it>
 //
 // 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
@@ -352,8 +353,6 @@ GBool PageLabelInfo::indexToLabel(int index, GooString *label)
 	  ucs2_char[1] = number_string.getChar(i);
 	  label->append(ucs2_char, 2);
       }
-      ucs2_char[1] = 0;
-      label->append(ucs2_char, 2);
   } else {
       label->append(&number_string);
   }


More information about the poppler mailing list