]> git.lyx.org Git - features.git/commitdiff
* half of the fix for http://bugzilla.lyx.org/show_bug.cgi?id=4091
authorStefan Schimanski <sts@lyx.org>
Wed, 12 Mar 2008 13:20:40 +0000 (13:20 +0000)
committerStefan Schimanski <sts@lyx.org>
Wed, 12 Mar 2008 13:20:40 +0000 (13:20 +0000)
  "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

src/mathed/InsetMathNest.cpp

index 9b63d00b3c1f8856b591790922965ab518604df3..572e70d88a43aced8c8a32cb60f5ecfebc9268b9 100644 (file)
@@ -486,10 +486,12 @@ void InsetMathNest::handleFont2(Cursor & cur, docstring const & arg)
        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?
 }