From: Jean-Marc Lasgouttes Date: Tue, 10 Mar 2015 15:05:22 +0000 (+0100) Subject: Take in account the parent's getStatus in macro templates X-Git-Tag: 2.2.0alpha1~1217 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c85ad29f11391783eb871be68389f851cce61ac4;p=features.git Take in account the parent's getStatus in macro templates 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. --- diff --git a/src/mathed/MathMacroTemplate.cpp b/src/mathed/MathMacroTemplate.cpp index 4a1ea5ca1f..82538e8d64 100644 --- a/src/mathed/MathMacroTemplate.cpp +++ b/src/mathed/MathMacroTemplate.cpp @@ -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;