poppler/PageLabelInfo.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit cef6ac0ebbf8451beaadb3ddb6c991bbb7239432 Author: Fabio D'Urso <[email protected]> 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 <[email protected]> // Copyright (C) 2005, 2009 Albert Astals Cid <[email protected]> // Copyright (C) 2011 Simon Kellner <[email protected]> +// Copyright (C) 2012 Fabio D'Urso <[email protected]> // // 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); }
_______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
