r24538 by jghali - Attempt to fix build of pdf import plugin with poppler 21.03.0

scribus-commit scribus-commit at lists.scribus.net
Mon Mar 1 22:00:02 UTC 2021


Author: jghali
Date: Mon Mar  1 22:00:02 2021
New Revision: 24538

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24538
Log:
Attempt to fix build of pdf import plugin with poppler 21.03.0

Modified:
    trunk/Scribus/scribus/plugins/import/pdf/slaoutput.cpp

Modified: trunk/Scribus/scribus/plugins/import/pdf/slaoutput.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24538&path=/trunk/Scribus/scribus/plugins/import/pdf/slaoutput.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/pdf/slaoutput.cpp	(original)
+++ trunk/Scribus/scribus/plugins/import/pdf/slaoutput.cpp	Mon Mar  1 22:00:02 2021
@@ -2336,7 +2336,11 @@
 	// 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();




More information about the scribus-commit mailing list