scribus: rebuild for poppler-22.12.0

This commit is contained in:
Albert Schwarzkopf 2022-12-12 18:32:06 +01:00 committed by Đoàn Trần Công Danh
parent 1f33f70287
commit d345ad98f0
2 changed files with 23 additions and 1 deletions

View File

@ -0,0 +1,22 @@
Index: scribus-1.5.8/scribus/plugins/import/pdf/slaoutput.cpp
===================================================================
--- scribus-1.5.8.orig/scribus/plugins/import/pdf/slaoutput.cpp
+++ scribus-1.5.8/scribus/plugins/import/pdf/slaoutput.cpp
@@ -3741,9 +3741,16 @@ void SlaOutputDev::getPenState(GfxState
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)
{

View File

@ -1,7 +1,7 @@
# Template file for 'scribus'
pkgname=scribus
version=1.5.8
revision=4
revision=5
build_style=cmake
configure_args="-DCMAKE_SKIP_RPATH=TRUE -DQT_PREFIX=${XBPS_CROSS_BASE}/usr
-DWANT_GRAPHICSMAGICK=1 -DWANT_CPP17=ON"