When selecting special logos, set their color correctly

Adapted from 860accd01f.
This commit is contained in:
Jean-Marc Lasgouttes 2016-10-26 11:18:25 +02:00
parent 3f8289e7b5
commit 1d4d07b66e
2 changed files with 4 additions and 1 deletions

View File

@ -136,7 +136,8 @@ void InsetSpecialChar::metrics(MetricsInfo & mi, Dimension & dim) const
namespace { namespace {
void drawLogo(PainterInfo & pi, InsetSpecialChar::Kind kind, int & x, int & y) { 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(); int const em = theFontMetrics(font).em();
switch (kind) { switch (kind) {
case InsetSpecialChar::PHRASE_LYX: case InsetSpecialChar::PHRASE_LYX:

View File

@ -94,6 +94,8 @@ What's new
- Fix on-screen display of font changes for text-in-math, so that now - 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. $\textbf{\textsc{a}}$ is also boldened on screen other than in output.
- When selecting special logos, set their color correctly.
* INTERNALS * INTERNALS