]> git.lyx.org Git - features.git/commitdiff
* src/mathed/InsetMathNest.cpp:
authorJürgen Spitzmüller <spitz@lyx.org>
Wed, 12 Mar 2008 18:50:50 +0000 (18:50 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Wed, 12 Mar 2008 18:50:50 +0000 (18:50 +0000)
- also handle the Color_inherit case.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23688 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathNest.cpp

index 377724444d06c14b696b2b48c82e83edadb8bbd1..d1b8baf9f03dbe214c90c9f8a19bf09c6b875fda 100644 (file)
@@ -491,7 +491,8 @@ void InsetMathNest::handleFont2(Cursor & cur, docstring const & arg)
        Font font;
        bool b;
        font.fromString(to_utf8(arg), b);
-       if (font.fontInfo().color() != Color_ignore)
+       if (font.fontInfo().color() != Color_inherit &&
+           font.fontInfo().color() != Color_ignore)
                handleNest(cur, MathAtom(new InsetMathColor(true, font.fontInfo().color())));
        
        // FIXME: support other font changes here as well?