Add support for Poppler >= 0.86

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 1c13ba28d7)
r14.0.x
Slávek Banko 5 years ago
parent ccef44e88b
commit ea8007e8f1
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -1,6 +1,7 @@
#cmakedefine VERSION "@VERSION@"
// poppler-tqt
#cmakedefine HAVE_POPPLER_086
#cmakedefine HAVE_POPPLER_083
#cmakedefine HAVE_POPPLER_082
#cmakedefine HAVE_POPPLER_076

@ -24,7 +24,7 @@ check_cxx_source_compiles("
HAVE_POPPLER_030 )
tde_restore( CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES )
foreach( _poppler_ver 0.58 0.64 0.70 0.71 0.72 0.76 0.82 0.83 )
foreach( _poppler_ver 0.58 0.64 0.70 0.71 0.72 0.76 0.82 0.83 0.86 )
string( REPLACE "." "" _poppler_str "${_poppler_ver}" )
if( NOT DEFINED HAVE_POPPLER_${_poppler_str} )
message( STATUS "Performing Test HAVE_POPPLER_${_poppler_str}" )

@ -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)

Loading…
Cancel
Save