fix canvas arc drawing bug
authorCharles Yin <charles.yin@nokia.com>
Mon, 25 Jul 2011 04:55:32 +0000 (14:55 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 26 Jul 2011 23:35:23 +0000 (01:35 +0200)
Task-number:QTBUG-20523
Change-Id: I6ff71c12ffb66407cc5bbb4783e4c957ab740ac7
Reviewed-on: http://codereview.qt.nokia.com/2068
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Charles Yin <charles.yin@nokia.com>
src/declarative/items/context2d/qsgcontext2d.cpp

index 5dd796b..97234a6 100644 (file)
@@ -1654,7 +1654,7 @@ void QSGContext2DPrivate::arc(qreal xc,
                               qreal ear,
                               bool antiClockWise)
 {
-    QPainterPath path;
+    QPainterPath p;
 
     //### HACK
 
@@ -1689,12 +1689,12 @@ void QSGContext2DPrivate::arc(qreal xc,
         span   += ea - sa;
     }
 
-    path.moveTo(QPointF(xc + radius  * qCos(sar),
+    p.moveTo(QPointF(xc + radius  * qCos(sar),
                         yc - radius  * qSin(sar)));
 
-    path.arcTo(xs, ys, width, height, sa, span);
+    p.arcTo(xs, ys, width, height, sa, span);
 
-    path.addPath(state.matrix.map(path));
+    path.addPath(state.matrix.map(p));
 }
 
 void QSGContext2DPrivate::fill()