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>
This commit is contained in:
parent
884b381576
commit
fbac55fe59
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user