archrelease: copy trunk to community-any
[ArchLinux/community.git] / scribus / trunk / scribus-1.5.8-poppler-22.09.0.patch
blob106a6f5162b6ac4935f0d754134d47d3c5bf705b
1 --- a/scribus/plugins/import/pdf/slaoutput.cpp
2 +++ b/scribus/plugins/import/pdf/slaoutput.cpp
3 @@ -3741,9 +3741,16 @@ void SlaOutputDev::getPenState(GfxState *state)
4 break;
6 double lw = state->getLineWidth();
7 - double *dashPattern;
8 int dashLength;
9 +#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(22, 9, 0)
10 + const double *dashPattern;
11 + const std::vector<double> &dash = state->getLineDash(&DashOffset);
12 + dashPattern = dash.data();
13 + dashLength = dash.size();
14 +#else
15 + double *dashPattern;
16 state->getLineDash(&dashPattern, &dashLength, &DashOffset);
17 +#endif
18 QVector<double> pattern(dashLength);
19 for (int i = 0; i < dashLength; ++i)