X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxfont.C;h=af6cc0bf7a056b40f31ab98825c44ddcf3270037;hb=2734cc154853c61a7ea54bfeea3adc908f68bdc5;hp=16d1558b73924aba24b98510ce85be1c6be24e48;hpb=6c300f72a217722652dc27db9108e1050028979c;p=lyx.git diff --git a/src/lyxfont.C b/src/lyxfont.C index 16d1558b73..af6cc0bf7a 100644 --- a/src/lyxfont.C +++ b/src/lyxfont.C @@ -724,14 +724,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())