commit 1d4d07b66ecbefbb16a61935f40bf70523c5847d
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Wed Oct 26 11:18:25 2016 +0200
When selecting special logos, set their color correctly
Adapted from 860accd01fb81.
---
src/insets/InsetSpecialChar.cpp | 3 ++-
status.22x | 2 ++
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/insets/InsetSpecialChar.cpp b/src/insets/InsetSpecialChar.cpp
index 8fa6ead..7822392 100644
--- a/src/insets/InsetSpecialChar.cpp
+++ b/src/insets/InsetSpecialChar.cpp
@@ -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:
diff --git a/status.22x b/status.22x
index e517a76..98afdaa 100644
--- a/status.22x
+++ b/status.22x
@@ -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