summaryrefslogtreecommitdiff
path: root/qt4
diff options
context:
space:
mode:
authorPino Toscano <pino@kde.org>2011-02-27 14:39:52 +0100
committerPino Toscano <pino@kde.org>2011-02-27 14:39:52 +0100
commitf9c978fc2ab8a1f901f2136ae95deb9d41076155 (patch)
tree6321d1d8d6f0144fbdea87144ccbc89de30c788a /qt4
parent071966e48577c515b17a424baeae85ae4fc80a20 (diff)
[qt4] directly use the dict
Diffstat (limited to 'qt4')
-rw-r--r--qt4/src/poppler-form.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/qt4/src/poppler-form.cc b/qt4/src/poppler-form.cc
index b989883f..815a8df8 100644
--- a/qt4/src/poppler-form.cc
+++ b/qt4/src/poppler-form.cc
@@ -90,17 +90,17 @@ FormField::FormField(FormFieldData &dd)
XPDFReader::transform( MTX, qMax( left, right ), qMin( top, bottom ), bottomRight );
m_formData->box = QRectF(topLeft, QSizeF(bottomRight.x() - topLeft.x(), bottomRight.y() - topLeft.y()));
- Object *obj = m_formData->fm->getObj();
+ Dict *dict = m_formData->fm->getObj()->getDict();
Object tmp;
// reading the flags
- if (obj->isDict() && obj->dictLookup("Ff", &tmp)->isInt())
+ if (dict->lookup("Ff", &tmp)->isInt())
{
m_formData->flags = tmp.getInt();
}
tmp.free();
// reading the widget annotation flags
- if (obj->isDict() && obj->dictLookup("F", &tmp)->isInt())
+ if (dict->lookup("F", &tmp)->isInt())
{
m_formData->annoflags = tmp.getInt();
}