scribus: rebuild for poppler-22.12.0
This commit is contained in:
parent
1f33f70287
commit
d345ad98f0
22
srcpkgs/scribus/patches/0004-poppler-22.09.0-fix.patch
Normal file
22
srcpkgs/scribus/patches/0004-poppler-22.09.0-fix.patch
Normal 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)
|
||||
{
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user