[poppler] poppler/Form.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Thu Jun 4 14:06:12 PDT 2009
poppler/Form.cc | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 4ce04da0040e5a2626c110f94a128e2d272401b9
Author: Matthias Drochner <M.Drochner at fz-juelich.de>
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 <inigomartinez at gmail.com>
// Copyright 2008 Pino Toscano <pino at kde.org>
// Copyright 2008 Michael Vrable <mvrable at cs.ucsd.edu>
+// Copyright 2009 Matthias Drochner <M.Drochner at fz-juelich.de>
//
//========================================================================
@@ -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);
}
}
More information about the poppler
mailing list