]> git.lyx.org Git - features.git/commitdiff
Take in account the parent's getStatus in macro templates
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 10 Mar 2015 15:05:22 +0000 (16:05 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 10 Mar 2015 15:17:29 +0000 (16:17 +0100)
This avoids invoking the insert space dialog instead of the math version. Thereafter, spaces are correctly inserted inside macro templates.

This is the last part of the fix to #9432.

src/mathed/MathMacroTemplate.cpp

index 4a1ea5ca1fae93125b04ad2c17c5435b62c0b306..82538e8d641542147ce0f2bc7bfbb538e13b37da 100644 (file)
@@ -1090,7 +1090,7 @@ void MathMacroTemplate::doDispatch(Cursor & cur, FuncRequest & cmd)
 }
 
 
-bool MathMacroTemplate::getStatus(Cursor & /*cur*/, FuncRequest const & cmd,
+bool MathMacroTemplate::getStatus(Cursor & cur, FuncRequest const & cmd,
        FuncStatus & flag) const
 {
        bool ret = true;
@@ -1148,7 +1148,7 @@ bool MathMacroTemplate::getStatus(Cursor & /*cur*/, FuncRequest const & cmd,
                        break;
 
                default:
-                       ret = false;
+                       ret = InsetMathNest::getStatus(cur, cmd, flag);
                        break;
        }
        return ret;