Skip to content
Snippets Groups Projects
Commit 608468d5 authored by Tobias C. Berner's avatar Tobias C. Berner
Browse files

print/scribus-devel: prepare for poppler 22.08

parent 2233880b
No related branches found
No related tags found
No related merge requests found
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)
{
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment