diff options
author | Andy Shaw <andy.shaw@digia.com> | 2014-06-09 22:08:55 +0200 |
---|---|---|
committer | Andy Shaw <andy.shaw@digia.com> | 2014-06-21 10:39:32 +0200 |
commit | fbac55fe59db8f16fbe94f79677f53fc47adc6a2 (patch) | |
tree | 805120d4cd1cc53f1d14a836f7cd09209921b763 /src/gui/painting/qpaintengine.cpp | |
parent | 884b38157689a893ace0a4c793fab921167abb2c (diff) |
When filling the path it should use the painter's pen not the state's
The state should already be updated when fillPath() is called, so it
should use the painter's pen to fill the path with instead as this will
have been updated already.
Task-number: QTBUG-39303
Change-Id: I1cc9922d4183bd44076c26210db06ad825ebf25b
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
Diffstat (limited to 'src/gui/painting/qpaintengine.cpp')
-rw-r--r-- | src/gui/painting/qpaintengine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qpaintengine.cpp b/src/gui/painting/qpaintengine.cpp index acab08e794..ba20186d00 100644 --- a/src/gui/painting/qpaintengine.cpp +++ b/src/gui/painting/qpaintengine.cpp @@ -761,7 +761,7 @@ void QPaintEngine::drawTextItem(const QPointF &p, const QTextItem &textItem) bool((painter()->renderHints() & QPainter::TextAntialiasing) && !(painter()->font().styleStrategy() & QFont::NoAntialias))); painter()->translate(p.x(), p.y()); - painter()->fillPath(path, state->pen().brush()); + painter()->fillPath(path, painter()->pen().brush()); painter()->restore(); } } |