"Applying Text-style to math generates \color{ignore}"
Which kind of font changes do we want to support here? After all the
text style dialog is meant for text. So it only really make sense for
\mbox'es. But there we probably cannot store every font change because
it still math up to now.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23681
a592a061-630c-0410-9148-
cb99ea01b6c8
Font font;
bool b;
font.fromString(to_utf8(arg), b);
- if (font.fontInfo().color() != Color_inherit) {
+ if (font.fontInfo().color() != Color_ignore) {
MathAtom at = MathAtom(new InsetMathColor(true, font.fontInfo().color()));
cur.handleNest(at, 0);
}
+
+ // FIXME: support other font changes here as well?
}