diff options
Diffstat (limited to 'qt4')
-rw-r--r-- | qt4/src/poppler-form.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/qt4/src/poppler-form.cc b/qt4/src/poppler-form.cc index 58873004..f3b97b5b 100644 --- a/qt4/src/poppler-form.cc +++ b/qt4/src/poppler-form.cc @@ -106,16 +106,11 @@ QString FormField::name() const QString FormField::uiName() const { - Object tmp; - Object *obj = m_formData->fm->getObj(); QString name; - if (obj->dictLookup("TU", &tmp)->isString()) + if (GooString *goo = m_formData->fm->getAlternateUiName()) { - GooString *goo = tmp.getString(); - if (goo) - name = goo->getCString(); + name = QString::fromLatin1(goo->getCString()); } - tmp.free(); return name; } |