When selecting special logos, set their color correctly

It is not nice when they are the only thinkg in the text that does not
change color.
This commit is contained in:
Jean-Marc Lasgouttes 2016-10-25 15:13:23 +02:00
parent b9c5d6ff4d
commit 860accd01f

View File

@ -139,8 +139,10 @@ namespace {
// helper function: draw text and update x.
void drawChar(PainterInfo & pi, int & x, int const y, char_type ch)
{
pi.pain.text(x, y, ch, pi.base.font);
x += theFontMetrics(pi.base.font).width(ch);
FontInfo font = pi.base.font;
font.setPaintColor(pi.textColor(font.realColor()));
pi.pain.text(x, y, ch, font);
x += theFontMetrics(font).width(ch);
}