[QPainter] Fix QTextItem painting with extended paint engine
Multi QFontEngine should be handled just like all other cases covered several lines below. Change-Id: If3dd9a2e38a5f6f61b113576cb188da378fc9efb Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
This commit is contained in:
parent
02e20f772d
commit
0e0464c50d
@ -6432,7 +6432,10 @@ void QPainterPrivate::drawTextItem(const QPointF &p, const QTextItem &_ti, QText
|
|||||||
if (rtl)
|
if (rtl)
|
||||||
x -= ti2.width.toReal();
|
x -= ti2.width.toReal();
|
||||||
|
|
||||||
engine->drawTextItem(QPointF(x, y), ti2);
|
if (extended)
|
||||||
|
extended->drawTextItem(QPointF(x, y), ti2);
|
||||||
|
else
|
||||||
|
engine->drawTextItem(QPointF(x, y), ti2);
|
||||||
|
|
||||||
if (!rtl)
|
if (!rtl)
|
||||||
x += ti2.width.toReal();
|
x += ti2.width.toReal();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user