mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
b9c5d6ff4d
commit
860accd01f
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user