[PATCH] Fix build with poppler 0.86.0.
authorMartin Whitaker <foss@martin-whitaker.me.uk>
Sun, 15 Mar 2020 13:14:34 +0000 (13:14 +0000)
committerRene Engelhard <rene@debian.org>
Thu, 21 May 2020 11:43:43 +0000 (12:43 +0100)
https://bugs.documentfoundation.org/show_bug.cgi?id=131353

Gbp-Pq: Name poppler-0.86.diff

sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx

index e9c2a407c2792e73e81130c66bd38a12d8055187..16ad04bf660a615239bcb28b3877cc5f793b4b93 100644 (file)
@@ -563,7 +563,9 @@ void PDFOutDev::processLink(Link* link, Catalog*)
     if (!(pAction && pAction->getKind() == actionURI))
         return;
 
-#if POPPLER_CHECK_VERSION(0, 72, 0)
+#if POPPLER_CHECK_VERSION(0, 86, 0)
+    const char* pURI = static_cast<LinkURI*>(pAction)->getURI().c_str();
+#elif POPPLER_CHECK_VERSION(0, 72, 0)
     const char* pURI = static_cast<LinkURI*>(pAction)->getURI()->c_str();
 #else
     const char* pURI = static_cast<LinkURI*>(pAction)->getURI()->getCString();