diff options
author | Charles Yin <charles.yin@nokia.com> | 2011-07-25 14:55:32 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-07-27 01:35:23 +0200 |
commit | 8a79531574b820ac72de4f42a83e5436e0ca1fe1 (patch) | |
tree | 435122681e2a8e1df605215410906906a1d3f2e6 /src | |
parent | 27cfafa52b908caa7be9ec778e079f6069496dfb (diff) |
fix canvas arc drawing bug
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/items/context2d/qsgcontext2d.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/declarative/items/context2d/qsgcontext2d.cpp b/src/declarative/items/context2d/qsgcontext2d.cpp index 5dd796bc9e..97234a6315 100644 --- a/src/declarative/items/context2d/qsgcontext2d.cpp +++ b/src/declarative/items/context2d/qsgcontext2d.cpp @@ -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() |