diff --git a/src/lyxfont.C b/src/lyxfont.C index c84d71c2b3..69cfe2c837 100644 --- a/src/lyxfont.C +++ b/src/lyxfont.C @@ -718,14 +718,8 @@ void LyXFont::lyxWriteChanges(LyXFont const & orgfont, if (orgfont.noun() != noun()) { os << "\\noun " << LyXMiscNames[noun()] << "\n"; } - if (orgfont.color() != color()) { - // To make us file compatible with older - // lyx versions we emit "default" instead - // of "inherit" - string col_str(lcolor.getLyXName(color())); - if (col_str == "inherit") col_str = "default"; - os << "\\color " << col_str << "\n"; - } + if (orgfont.color() != color()) + os << "\\color " << lcolor.getLyXName(color()) << '\n'; if (orgfont.language() != language() && language() != latex_language) { if (language()) diff --git a/status.14x b/status.14x index c2ae0f2771..7006af1196 100644 --- a/status.14x +++ b/status.14x @@ -42,6 +42,9 @@ What's new * Document Input/Output +- Write inherited colors correctly as "inherit" to the .lyx file. Previously + they where written as "default", which was then read in as "none". + - Parse the optional argument of the AMS math environments aligned, gathered and alignedat.