mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-18 04:07:23 +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