scribus/0002-fix-build-of-pdf-import-plugin-with-poppler-21.03.0.patch
Christophe Giboudeaux cb97fc81f7 Accepting request 880150 from home:alarrosa:branches:KDE:Extra
This fixes scribus build with poppler 21.03.0
(currently failing to build in Staging:O)

- Add patches from upstream to fix build with popper 21.03.0:
  * 0001-fix-build-of-pdf-import-plugin-with-poppler-21.03.0.patch
  * 0002-fix-build-of-pdf-import-plugin-with-poppler-21.03.0.patch

OBS-URL: https://build.opensuse.org/request/show/880150
OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/scribus?expand=0&rev=63
2021-03-19 16:46:37 +00:00

28 lines
1.1 KiB
Diff

From 6b9ff916959bcb941866f0bd86da639a421337f8 Mon Sep 17 00:00:00 2001
From: Jean Ghali <jghali@libertysurf.fr>
Date: Mon, 1 Mar 2021 22:00:02 +0000
Subject: [PATCH] Attempt to fix build of pdf import plugin with poppler
21.03.0
git-svn-id: svn://scribus.net/trunk/Scribus@24538 11d20701-8431-0410-a711-e3c959e3b870
---
scribus/plugins/import/pdf/slaoutput.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/scribus/plugins/import/pdf/slaoutput.cpp b/scribus/plugins/import/pdf/slaoutput.cpp
index d1b37a0c21..de0a4145ef 100644
--- a/scribus/plugins/import/pdf/slaoutput.cpp
+++ b/scribus/plugins/import/pdf/slaoutput.cpp
@@ -2335,7 +2335,11 @@ GBool SlaOutputDev::tilingPatternFill(GfxState *state, Gfx * /*gfx*/, Catalog *c
// Unset the clip path as it is unrelated to the pattern's coordinate space.
QPainterPath savedClip = m_currentClipPath;
m_currentClipPath = QPainterPath();
+#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(21, 3, 0)
+ gfx->display(tPat->getContentStream());
+#else
gfx->display(str);
+#endif
m_currentClipPath = savedClip;
inPattern--;
gElements = m_groupStack.pop();