diff --git a/scribus/plugins/import/pdf/slaoutput.cpp b/scribus/plugins/import/pdf/slaoutput.cpp index 22f9efa..f12ad1b 100644 --- a/scribus/plugins/import/pdf/slaoutput.cpp +++ b/scribus/plugins/import/pdf/slaoutput.cpp @@ -3741,11 +3741,10 @@ void SlaOutputDev::getPenState(GfxState *state) break; } double lw = state->getLineWidth(); - double *dashPattern; - int dashLength; - state->getLineDash(&dashPattern, &dashLength, &DashOffset); - QVector pattern(dashLength); - for (int i = 0; i < dashLength; ++i) + const std::vector &dashPattern = state->getLineDash(&DashOffset); + auto size = dashPattern.size(); + QVector pattern(size); + for (unsigned int i = 0; i < size; ++i) { pattern[i] = dashPattern[i] / lw; }