[EMAIL PROTECTED] wrote: > - if (font.fontInfo().color() != Color_inherit) { > + if (font.fontInfo().color() != Color_ignore) {
This fails now with "unknown color inherit" when you set the color to reset. The solution is if (font.fontInfo().color() != Color_inherit && font.fontInfo().color() != Color_ignore) { Attached a backport to branch. OK? Jürgen
Index: src/mathed/InsetMathNest.cpp =================================================================== --- src/mathed/InsetMathNest.cpp (Revision 23685) +++ src/mathed/InsetMathNest.cpp (Arbeitskopie) @@ -430,7 +430,7 @@ Font font; bool b; bv_funcs::string2font(to_utf8(arg), font, b); - if (font.color() != Color::inherit) { + if (font.color() != Color::inherit && font.color() != Color::ignore) { MathAtom at = MathAtom(new InsetMathColor(true, font.color())); cur.handleNest(at, 0); }