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.
This commit is contained in:
Jean-Marc Lasgouttes 2015-03-10 16:05:22 +01:00
parent 97c6e6d1ba
commit c85ad29f11

View 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;