diff options
author | Pino Toscano <pino@kde.org> | 2011-02-27 14:39:52 +0100 |
---|---|---|
committer | Pino Toscano <pino@kde.org> | 2011-02-27 14:39:52 +0100 |
commit | f9c978fc2ab8a1f901f2136ae95deb9d41076155 (patch) | |
tree | 6321d1d8d6f0144fbdea87144ccbc89de30c788a /qt4 | |
parent | 071966e48577c515b17a424baeae85ae4fc80a20 (diff) |
[qt4] directly use the dict
Diffstat (limited to 'qt4')
-rw-r--r-- | qt4/src/poppler-form.cc | 6 |
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(); } |