From: Jean-Marc Lasgouttes Date: Tue, 25 Oct 2016 13:13:23 +0000 (+0200) Subject: When selecting special logos, set their color correctly X-Git-Tag: 2.3.0alpha1~802 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=860accd01fb8115ec7c6ad80b054f1046e19c62f;p=features.git 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. --- diff --git a/src/insets/InsetSpecialChar.cpp b/src/insets/InsetSpecialChar.cpp index 3d32f406ea..b6bcb479c8 100644 --- a/src/insets/InsetSpecialChar.cpp +++ b/src/insets/InsetSpecialChar.cpp @@ -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); }