From: Martin Whitaker Date: Sun, 15 Mar 2020 13:14:34 +0000 (+0000) Subject: [PATCH] Fix build with poppler 0.86.0. X-Git-Tag: archive/raspbian/1%6.4.4-1+rpi1^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a4103be39d511db055764fe3e82771a6705deeb1;p=libreoffice.git [PATCH] Fix build with poppler 0.86.0. https://bugs.documentfoundation.org/show_bug.cgi?id=131353 Gbp-Pq: Name poppler-0.86.diff --- diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx index e9c2a407c27..16ad04bf660 100644 --- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx +++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx @@ -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(pAction)->getURI().c_str(); +#elif POPPLER_CHECK_VERSION(0, 72, 0) const char* pURI = static_cast(pAction)->getURI()->c_str(); #else const char* pURI = static_cast(pAction)->getURI()->getCString();