8dc0b60a1203a8add858be598edc69184978b62a
[jackhill/guix/guix.git] / gnu / packages / patches / libreoffice-poppler-compat.patch
1 Fix type mismatch with Poppler 0.86.
2
3 Taken from Arch Linux:
4 https://git.archlinux.org/svntogit/packages.git/tree/trunk/libreoffice-poppler-0.86.patch?h=packages/libreoffice-fresh
5
6 diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
7 --- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
8 +++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
9 @@ -563,7 +563,9 @@ void PDFOutDev::processLink(Link* link, Catalog*)
10 if (!(pAction && pAction->getKind() == actionURI))
11 return;
12
13 -#if POPPLER_CHECK_VERSION(0, 72, 0)
14 +#if POPPLER_CHECK_VERSION(0, 86, 0)
15 + const char* pURI = static_cast<LinkURI*>(pAction)->getURI().c_str();
16 +#elif POPPLER_CHECK_VERSION(0, 72, 0)
17 const char* pURI = static_cast<LinkURI*>(pAction)->getURI()->c_str();
18 #else
19 const char* pURI = static_cast<LinkURI*>(pAction)->getURI()->getCString();