From 860accd01fb8115ec7c6ad80b054f1046e19c62f Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Tue, 25 Oct 2016 15:13:23 +0200 Subject: [PATCH] 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. --- src/insets/InsetSpecialChar.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); } -- 2.39.2