]> git.lyx.org Git - lyx.git/commitdiff
When selecting special logos, set their color correctly
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 26 Oct 2016 09:18:25 +0000 (11:18 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 26 Oct 2016 09:19:49 +0000 (11:19 +0200)
Adapted from 860accd01fb81.

src/insets/InsetSpecialChar.cpp
status.22x

index 8fa6eadc0ea86abf4139e5f5e69807d4e3defe4f..7822392f25bf95e1f1475c62b11dfd5eeec318b5 100644 (file)
@@ -136,7 +136,8 @@ void InsetSpecialChar::metrics(MetricsInfo & mi, Dimension & dim) const
 namespace {
 
 void drawLogo(PainterInfo & pi, InsetSpecialChar::Kind kind, int & x, int & y) {
-       FontInfo const & font = pi.base.font;
+       FontInfo font = pi.base.font;
+       font.setPaintColor(pi.textColor(font.realColor()));
        int const em = theFontMetrics(font).em();
        switch (kind) {
        case InsetSpecialChar::PHRASE_LYX:
index e517a76159c4cc9371873d20b20d2cdac83dc513..98afdaa364abc63bc262cd09218018fa8fd212fd 100644 (file)
@@ -94,6 +94,8 @@ What's new
 - Fix on-screen display of font changes for text-in-math, so that now
   $\textbf{\textsc{a}}$ is also boldened on screen other than in output.
 
+- When selecting special logos, set their color correctly.
+
 
 * INTERNALS