forked from pool/scribus
27 lines
1.0 KiB
Diff
27 lines
1.0 KiB
Diff
poppler 22.09 compatibility.
|
|
Origin: archlinux
|
|
https://github.com/archlinux/svntogit-community/blob/packages/scribus/trunk/scribus-1.5.8-poppler-22.09.0.patch
|
|
diff --git a/scribus/plugins/import/pdf/slaoutput.cpp b/scribus/plugins/import/pdf/slaoutput.cpp
|
|
index 8723b36..0f75cec 100644
|
|
--- a/scribus/plugins/import/pdf/slaoutput.cpp
|
|
+++ b/scribus/plugins/import/pdf/slaoutput.cpp
|
|
@@ -3627,9 +3627,16 @@ void SlaOutputDev::getPenState(GfxState *state)
|
|
break;
|
|
}
|
|
double lw = state->getLineWidth();
|
|
- double *dashPattern;
|
|
int dashLength;
|
|
- state->getLineDash(&dashPattern, &dashLength, &DashOffset);
|
|
+#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)
|
|
{
|