Commit 552f344b authored by Pino Toscano's avatar Pino Toscano
Browse files

[arthur] update the line dash style

parent bc42ee05
......@@ -166,7 +166,17 @@ void ArthurOutputDev::updateCTM(GfxState *state, double m11, double m12,
void ArthurOutputDev::updateLineDash(GfxState *state)
{
// qDebug() << "updateLineDash";
double *dashPattern;
int dashLength;
double dashStart;
state->getLineDash(&dashPattern, &dashLength, &dashStart);
QVector<qreal> pattern(dashLength);
for (int i = 0; i < dashLength; ++i) {
pattern[i] = dashPattern[i];
}
m_currentPen.setDashPattern(pattern);
m_currentPen.setDashOffset(dashStart);
m_painter->setPen(m_currentPen);
}
void ArthurOutputDev::updateFlatness(GfxState *state)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment