diff options
Diffstat (limited to 'tdefile-plugins/dependencies/poppler-tqt/poppler-private.cpp')
-rw-r--r-- | tdefile-plugins/dependencies/poppler-tqt/poppler-private.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tdefile-plugins/dependencies/poppler-tqt/poppler-private.cpp b/tdefile-plugins/dependencies/poppler-tqt/poppler-private.cpp index 059bf1c0..2f5e75ba 100644 --- a/tdefile-plugins/dependencies/poppler-tqt/poppler-private.cpp +++ b/tdefile-plugins/dependencies/poppler-tqt/poppler-private.cpp @@ -101,9 +101,15 @@ void DocumentData::addTocChildren( TQDomDocument * docSyn, TQDomNode * parent, O // 1. create element using outlineItem's title as tagName TQString name; +#ifdef HAVE_POPPLER_2402 + const std::vector<Unicode> &uVec = outlineItem->getTitle(); + name = unicodeToTQString( uVec.data(), uVec.size() ); +#else CONST_064 Unicode * uniChar = outlineItem->getTitle(); int titleLength = outlineItem->getTitleLength(); name = unicodeToTQString(uniChar, titleLength); +#endif + if ( name.isEmpty() ) continue; |