Commit 08dcc712 authored by Albert Astals Cid's avatar Albert Astals Cid

* poppler/Annot.cc:

        * poppler/Form.cc:
        Fix uninitialized variables.
        Properly escape parenthesis and slash in text field
parent e8d3b21d
2007-03-06 Julien Rebetez <julien@fhtagn.net>
reviewed by: <aacid@kde.org>
* poppler/Annot.cc:
* poppler/Form.cc:
Fix uninitialized variables.
Properly escape parenthesis and slash in text field.
2007-03-06 Brad Hards <bradh@kde.org>
* configure.ac
......@@ -8,7 +16,6 @@
Switch to using pkg-config to find Qt4.
2007-02-25 Julien Rebetez <julienr@svn.gnome.org>
reviewed by: Albert Astals Cid <aacid@kde.org>
* poppler/Annot.cc:
......
......@@ -113,6 +113,7 @@ void Annot::initialize(XRef *xrefA, Dict *acroForm, Dict *dict, Catalog *catalog
widget = catalog->getForm()->findWidgetByRef(ref);
}
isTextField = false;
isMultiline = isListbox = false;
if (widget) {
if (widget->getType() == formText) {
......@@ -207,6 +208,8 @@ void Annot::writeTextString (GooString* vStr, CharCodeToUnicode* ccToUnicode, Go
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;
......
......@@ -1138,6 +1138,7 @@ FormPageWidgets::FormPageWidgets (XRef *xrefA, Object* annots, unsigned int page
Object obj1;
numWidgets = 0;
widgets = NULL;
xref = xrefA;
if (annots->isArray() && form) {
size = annots->arrayGetLength();
widgets = (FormWidget**)greallocn(widgets, size, sizeof(FormWidget*));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment