Fix QPainter::drawText with complex brushes
authorSimon Hausmann <simon.hausmann@nokia.com>
Wed, 4 Jan 2012 15:32:55 +0000 (16:32 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 4 Jan 2012 20:16:55 +0000 (21:16 +0100)
commit73187281c3f88b7a709713a2b09fb43871ea6b6d
tree23dbaa02cf33bd2a20e9a9b6dab36fbcd0463f5e
parentecb57cfc32ebbc457fd5e58ae0efc4dcb9d4d3f8
Fix QPainter::drawText with complex brushes

Commit d52fd497f60a3c4456994f4f10e9451d611c9ea4 introduced a call path to
QPaintEngineEx::drawStaticTextItem, which has a bug in using the pen's color
instead of the entire brush.

This patch replaces the use of the color with the pen's brush().

Task-number: QTBUG-23450
Change-Id: Ieb3bf352c840ff0d3fb4ac678caf7b13f4f9a8f1
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
src/gui/painting/qpaintengineex.cpp
tests/auto/gui/painting/qpainter/tst_qpainter.cpp