Commit 1b84a71e authored by Oliver Sander's avatar Oliver Sander Committed by Albert Astals Cid
Browse files

Use Qt::SvgMiterJoin instead of Qt::MiterJoin

The two differ in what happens when the miter limit is exceeded.
According to

  https://bugreports.qt.io/browse/QTBUG-52640

Qt::SvgMiterJoin is what the pdf standard requires.

Closes: https://bugs.freedesktop.org/show_bug.cgi?id=102356
parent 0793b674
......@@ -205,7 +205,10 @@ void ArthurOutputDev::updateLineJoin(GfxState *state)
{
switch (state->getLineJoin()) {
case 0:
m_currentPen.setJoinStyle(Qt::MiterJoin);
// The correct style here is Qt::SvgMiterJoin, *not* Qt::MiterJoin.
// The two differ in what to do if the miter limit is exceeded.
// See https://bugs.freedesktop.org/show_bug.cgi?id=102356
m_currentPen.setJoinStyle(Qt::SvgMiterJoin);
break;
case 1:
m_currentPen.setJoinStyle(Qt::RoundJoin);
......
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