[poppler] poppler/poppler: Annot.cc,1.8,1.9 Form.cc,1.2,1.3
Albert Astals Cid
aacid at kemper.freedesktop.org
Tue Mar 6 14:27:20 PST 2007
Update of /cvs/poppler/poppler/poppler
In directory kemper:/tmp/cvs-serv11794/poppler
Modified Files:
Annot.cc Form.cc
Log Message:
* poppler/Annot.cc:
* poppler/Form.cc:
Fix uninitialized variables.
Properly escape parenthesis and slash in text field
Index: Annot.cc
===================================================================
RCS file: /cvs/poppler/poppler/poppler/Annot.cc,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- Annot.cc 25 Feb 2007 00:34:21 -0000 1.8
+++ Annot.cc 6 Mar 2007 22:27:18 -0000 1.9
@@ -113,6 +113,7 @@
widget = catalog->getForm()->findWidgetByRef(ref);
}
+ isTextField = false;
isMultiline = isListbox = false;
if (widget) {
if (widget->getType() == formText) {
@@ -207,6 +208,8 @@
ctmp[0] = vStr->getChar(i0-1);
ctmp[1] = vStr->getChar(i0);
ccToUnicode->mapToCharCode((Unicode*)ctmp, &c, 2);
+ if (c == '(' || c == ')' || c == '\\')
+ appearBuf->append('\\');
appearBuf->append(c);
} else {
c &= 0xff;
Index: Form.cc
===================================================================
RCS file: /cvs/poppler/poppler/poppler/Form.cc,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- Form.cc 25 Feb 2007 00:34:21 -0000 1.2
+++ Form.cc 6 Mar 2007 22:27:18 -0000 1.3
@@ -1138,6 +1138,7 @@
Object obj1;
numWidgets = 0;
widgets = NULL;
+ xref = xrefA;
if (annots->isArray() && form) {
size = annots->arrayGetLength();
widgets = (FormWidget**)greallocn(widgets, size, sizeof(FormWidget*));
More information about the poppler
mailing list