diff options
author | Slávek Banko <[email protected]> | 2020-04-09 00:15:14 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-04-09 00:15:28 +0200 |
commit | ea8007e8f1bbc87919c3c676a9efde38da4250df (patch) | |
tree | fe839888847927e71c64ce6617a0a5e382d97047 /tdefile-plugins/dependencies/poppler-tqt/poppler-link.cc | |
parent | ccef44e88b95db60b261d997d021486d575cce27 (diff) | |
download | tdegraphics-ea8007e8f1bbc87919c3c676a9efde38da4250df.tar.gz tdegraphics-ea8007e8f1bbc87919c3c676a9efde38da4250df.zip |
Add support for Poppler >= 0.86
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit 1c13ba28d73f4de69bbcfd8d32fee8ccf72b48ab)
Diffstat (limited to 'tdefile-plugins/dependencies/poppler-tqt/poppler-link.cc')
-rw-r--r-- | tdefile-plugins/dependencies/poppler-tqt/poppler-link.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tdefile-plugins/dependencies/poppler-tqt/poppler-link.cc b/tdefile-plugins/dependencies/poppler-tqt/poppler-link.cc index 52d7e4ab..ee05eb06 100644 --- a/tdefile-plugins/dependencies/poppler-tqt/poppler-link.cc +++ b/tdefile-plugins/dependencies/poppler-tqt/poppler-link.cc @@ -35,7 +35,11 @@ namespace Poppler { if ( data.namedDest && !ld ) { deleteDest = true; +# if defined(HAVE_POPPLER_086) + ld = data.doc->doc.findDest( data.namedDest ).get(); +# else ld = data.doc->doc.findDest( data.namedDest ); +# endif } if (!ld) return; @@ -77,7 +81,9 @@ namespace Poppler { m_right = rightAux; m_bottom = bottomAux; +# if !defined(HAVE_POPPLER_086) if (deleteDest) delete ld; +# endif } LinkDestination::LinkDestination(const TQString &description) |