Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Sep 2022 15:53:03 GMT
From:      "Tobias C. Berner" <tcberner@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 608468d5a6c2 - main - print/scribus-devel: prepare for poppler 22.08
Message-ID:  <202209061553.286Fr3nK070576@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by tcberner:

URL: https://cgit.FreeBSD.org/ports/commit/?id=608468d5a6c22569ae59a2d6de3dd9a49383846f

commit 608468d5a6c22569ae59a2d6de3dd9a49383846f
Author:     Tobias C. Berner <tcberner@FreeBSD.org>
AuthorDate: 2022-09-06 14:36:01 +0000
Commit:     Tobias C. Berner <tcberner@FreeBSD.org>
CommitDate: 2022-09-06 15:49:49 +0000

    print/scribus-devel: prepare for poppler 22.08
    
    PR:             266151
    Obtained from:  https://github.com/archlinux/svntogit-community/blob/packages/scribus/trunk/scribus-1.5.8-poppler-22.09.0.patch
---
 .../patch-scribus_plugins_import_pdf_slaoutput.cpp | 23 ++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/print/scribus-devel/files/patch-scribus_plugins_import_pdf_slaoutput.cpp b/print/scribus-devel/files/patch-scribus_plugins_import_pdf_slaoutput.cpp
new file mode 100644
index 000000000000..0921eddd3997
--- /dev/null
+++ b/print/scribus-devel/files/patch-scribus_plugins_import_pdf_slaoutput.cpp
@@ -0,0 +1,23 @@
+Obtained from:
+	https://github.com/archlinux/svntogit-community/blob/packages/scribus/trunk/scribus-1.5.8-poppler-22.09.0.patch
+
+--- scribus/plugins/import/pdf/slaoutput.cpp.orig	2022-09-06 14:31:26 UTC
++++ scribus/plugins/import/pdf/slaoutput.cpp
+@@ -3681,9 +3681,16 @@ void SlaOutputDev::getPenState(GfxState *state)
+ 			break;
+ 	}
+ 	double lw = state->getLineWidth();
+-	double *dashPattern;
+ 	int dashLength;
++#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(22, 9, 0)
++	const double *dashPattern;
++	const std::vector<double> &dash = state->getLineDash(&DashOffset);
++	dashPattern = dash.data();
++	dashLength = dash.size();
++#else
++	double *dashPattern;
+ 	state->getLineDash(&dashPattern, &dashLength, &DashOffset);
++#endif
+ 	QVector<double> pattern(dashLength);
+ 	for (int i = 0; i < dashLength; ++i)
+ 	{



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202209061553.286Fr3nK070576>