summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@digia.com>2013-10-17 15:51:24 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-18 11:37:37 +0200
commitc075f086f1ae69c28c8f6ba169d60784f904e534 (patch)
treefae22ce8e6fa9501b65a8fb84146413c530efe0f /Source/WebCore/platform
parent3909ae8f4ee3f21045087865587947d6da510551 (diff)
SVG stroke-dasharray not working
When creating the QPainterPathStroker we forget to also copy the dashPattern property. Task-number: QTBUG-34063 Change-Id: Idb4d124447e2727c418c8ca5e1de694245f6ba22 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Diffstat (limited to 'Source/WebCore/platform')
-rw-r--r--Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp b/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp
index 17dc4142c..541aae91c 100644
--- a/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp
+++ b/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp
@@ -717,6 +717,7 @@ void GraphicsContext::strokePath(const Path& path)
QPainterPathStroker pathStroker;
pathStroker.setJoinStyle(pen.joinStyle());
pathStroker.setDashOffset(pen.dashOffset());
+ pathStroker.setDashPattern(pen.dashPattern());
pathStroker.setMiterLimit(pen.miterLimit());
pathStroker.setCapStyle(pen.capStyle());
pathStroker.setWidth(pen.widthF());