mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
Fix bug #9601
Make sure emphasized text in mathed has correct shape and color.
This commit is contained in:
parent
009efa195b
commit
be2c12ba40
@ -65,7 +65,13 @@ Changer MetricsBase::changeFontSet(string const & name)
|
||||
augmentFont(font, name);
|
||||
font.setSize(rc->old.font.size());
|
||||
font.setStyle(rc->old.font.style());
|
||||
if (name != "lyxtex"
|
||||
if (name == "emph") {
|
||||
font.setColor(oldcolor);
|
||||
if (rc->old.font.shape() != UP_SHAPE)
|
||||
font.setShape(UP_SHAPE);
|
||||
else
|
||||
font.setShape(ITALIC_SHAPE);
|
||||
} else if (name != "lyxtex"
|
||||
&& ((isTextFont(oldname) && oldcolor != Color_foreground)
|
||||
|| (isMathFont(oldname) && oldcolor != Color_math)))
|
||||
font.setColor(oldcolor);
|
||||
|
Loading…
Reference in New Issue
Block a user