gnu: tests: Fix unbound variable.
[jackhill/guix/guix.git] / gnu / packages / patches / libreoffice-poppler-compat.patch
CommitLineData
976ae7ea
MB
1Fix type mismatch with Poppler 0.86.
2
3Taken from Arch Linux:
4https://git.archlinux.org/svntogit/packages.git/tree/trunk/libreoffice-poppler-0.86.patch?h=packages/libreoffice-fresh
5
6diff --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();