commit 860accd01fb8115ec7c6ad80b054f1046e19c62f
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Tue Oct 25 15:13:23 2016 +0200

    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 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/insets/InsetSpecialChar.cpp b/src/insets/InsetSpecialChar.cpp
index 3d32f40..b6bcb47 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);
 }
 
 

Reply via email to