Skip to content

Commit

Permalink
#16767: Dashed lines imported from PDF have incorrect segment lengths
Browse files Browse the repository at this point in the history
git-svn-id: svn://scribus.net/trunk/Scribus@25000 11d20701-8431-0410-a711-e3c959e3b870
  • Loading branch information
Jean Ghali committed Mar 7, 2022
1 parent 4471b4b commit a9236cd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scribus/plugins/import/pdf/slaoutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3593,15 +3593,12 @@ void SlaOutputDev::getPenState(GfxState *state)
m_lineJoin = Qt::BevelJoin;
break;
}
double lw = state->getLineWidth();
double *dashPattern;
int dashLength;
state->getLineDash(&dashPattern, &dashLength, &DashOffset);
QVector<double> pattern(dashLength);
for (int i = 0; i < dashLength; ++i)
{
pattern[i] = dashPattern[i] / lw;
}
pattern[i] = dashPattern[i];
DashValues = pattern;
}

Expand Down

0 comments on commit a9236cd

Please sign in to comment.