2019-01-21 16:26:39 +00:00
|
|
|
From a5a188d5bbb99f6e305dad6f81b9e3760aa32676 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Andreas Sturmlechner <asturm@gentoo.org>
|
|
|
|
Date: Tue, 8 Jan 2019 11:24:40 +0100
|
|
|
|
Subject: Fix build with poppler-0.72
|
|
|
|
MIME-Version: 1.0
|
|
|
|
Content-Type: text/plain; charset=UTF-8
|
|
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
|
|
|
|
Change-Id: I0664d1b39e97b7555c0a3cba442db52b84f37134
|
|
|
|
Reviewed-on: https://gerrit.libreoffice.org/65960
|
|
|
|
Tested-by: Jenkins
|
|
|
|
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
|
|
|
|
(cherry picked from commit 65a6c9ae4791188ffcecf489073cf38873ce5e17)
|
|
|
|
Reviewed-on: https://gerrit.libreoffice.org/66376
|
|
|
|
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
|
|
|
|
Tested-by: Caolán McNamara <caolanm@redhat.com>
|
|
|
|
---
|
|
|
|
sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx | 8 ++++++++
|
|
|
|
1 file changed, 8 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
|
|
|
|
index df0288d..9c65fc2 100644
|
|
|
|
--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
|
|
|
|
+++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
|
|
|
|
@@ -555,7 +555,11 @@ void PDFOutDev::processLink(Link* link, Catalog*)
|
2018-12-18 01:24:58 +00:00
|
|
|
LinkAction* pAction = link->getAction();
|
|
|
|
if (pAction && pAction->getKind() == actionURI)
|
|
|
|
{
|
2019-01-21 16:26:39 +00:00
|
|
|
+#if POPPLER_CHECK_VERSION(0, 72, 0)
|
2018-12-18 01:24:58 +00:00
|
|
|
+ const char* pURI = static_cast<LinkURI*>(pAction)->getURI()->c_str();
|
2019-01-21 16:26:39 +00:00
|
|
|
+#else
|
|
|
|
const char* pURI = static_cast<LinkURI*>(pAction)->getURI()->getCString();
|
|
|
|
+#endif
|
2018-12-18 01:24:58 +00:00
|
|
|
|
|
|
|
std::vector<char> aEsc( lcl_escapeLineFeeds(pURI) );
|
|
|
|
|
2019-01-21 16:26:39 +00:00
|
|
|
@@ -757,7 +761,11 @@ void PDFOutDev::updateFont(GfxState *state)
|
2018-12-18 01:24:58 +00:00
|
|
|
|
|
|
|
aFont = it->second;
|
|
|
|
|
2019-01-21 16:26:39 +00:00
|
|
|
+#if POPPLER_CHECK_VERSION(0, 72, 0)
|
2018-12-18 01:24:58 +00:00
|
|
|
+ std::vector<char> aEsc( lcl_escapeLineFeeds(aFont.familyName.c_str()) );
|
2019-01-21 16:26:39 +00:00
|
|
|
+#else
|
|
|
|
std::vector<char> aEsc( lcl_escapeLineFeeds(aFont.familyName.getCString()) );
|
|
|
|
+#endif
|
2018-12-18 01:24:58 +00:00
|
|
|
printf( " %d %d %d %d %f %d %s",
|
|
|
|
aFont.isEmbedded,
|
|
|
|
aFont.isBold,
|
2019-01-21 16:26:39 +00:00
|
|
|
--
|
|
|
|
cgit v1.1
|
|
|
|
|