From 9ae289f259f80458caf7c788ee07357db7e1257a Mon Sep 17 00:00:00 2001 From: Charles Yin Date: Fri, 4 May 2012 11:25:51 +1000 Subject: [PATCH] Change Qt::MiterJoin to Qt::SvgMiterJoin for context2d join Qt::MiterJoin has different behavior with HTML5 context2d spec, fortunately Qt::SvgMiterJoin is the right one. Change-Id: Ice50c6f92b244a4d39f984510f76146682b02f07 Reviewed-by: Michael Brasser --- src/quick/items/context2d/qquickcontext2d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/quick/items/context2d/qquickcontext2d.cpp b/src/quick/items/context2d/qquickcontext2d.cpp index 6d8d9b8..6fa3644 100644 --- a/src/quick/items/context2d/qquickcontext2d.cpp +++ b/src/quick/items/context2d/qquickcontext2d.cpp @@ -1329,7 +1329,7 @@ static void ctx2d_lineJoin_set(v8::Local, v8::Local value else if (lineJoin == QLatin1String("bevel")) join = Qt::BevelJoin; else if (lineJoin == QLatin1String("miter")) - join = Qt::MiterJoin; + join = Qt::SvgMiterJoin; else return; -- 2.7.4