diff options
author | Slávek Banko <[email protected]> | 2019-01-03 18:52:32 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2019-01-03 18:52:32 +0100 |
commit | aa4563ad7056949864cc41f9088626523d79f5ab (patch) | |
tree | c310e66bc4df824bd9ad75d5853ad62952bb08db /tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc | |
parent | d0243fcc86b29344b11fd2b832c3d38c3063263a (diff) | |
download | tdegraphics-aa4563ad7056949864cc41f9088626523d79f5ab.tar.gz tdegraphics-aa4563ad7056949864cc41f9088626523d79f5ab.zip |
Add support for Poppler >= 0.71.
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc')
-rw-r--r-- | tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc b/tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc index 9584b104..f05816df 100644 --- a/tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc +++ b/tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc @@ -33,7 +33,9 @@ #include <DateInfo.h> #include "poppler-private.h" +#if !defined(HAVE_POPPLER_071) #undef bool +#endif namespace Poppler { @@ -141,7 +143,11 @@ bool Document::scanForFonts( int numPages, TQValueList<FontInfo> *fontList ) con (Poppler::FontInfo::Type)((::FontInfo*)items->get(i))->getType()); fontList->append(font); } +# if defined(HAVE_POPPLER_070) + deleteGooList<::FontInfo>(items); +# else deleteGooList(items, ::FontInfo); +# endif return true; } |