poppler/Form.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit 4ce04da0040e5a2626c110f94a128e2d272401b9 Author: Matthias Drochner <[email protected]> Date: Thu Jun 4 23:05:22 2009 +0200 Use the correct value when creating the V field PDF Spec says: For items represented in the Opt array by a two-element array, the name string is the second of the two array elements. diff --git a/poppler/Form.cc b/poppler/Form.cc index 89e18a3..6e88937 100644 --- a/poppler/Form.cc +++ b/poppler/Form.cc @@ -11,6 +11,7 @@ // Copyright 2007 Iñigo MartÃnez <[email protected]> // Copyright 2008 Pino Toscano <[email protected]> // Copyright 2008 Michael Vrable <[email protected]> +// Copyright 2009 Matthias Drochner <[email protected]> // //======================================================================== @@ -535,7 +536,7 @@ void FormWidgetChoice::_updateV () } else if (numSelected == 1) { for(int i=0; i<parent->getNumChoices(); i++) { if (parent->isSelected(i)) { - obj1.initString(new GooString(parent->getExportVal(i))); + obj1.initString(new GooString(parent->getChoice(i))); break; } } @@ -544,7 +545,7 @@ void FormWidgetChoice::_updateV () for(int i=0; i<parent->getNumChoices(); i++) { if (parent->isSelected(i)) { Object obj2; - obj2.initString(new GooString(parent->getExportVal(i))); + obj2.initString(new GooString(parent->getChoice(i))); obj1.arrayAdd(&obj2); } }
_______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
