Set buffer correctly when changing math space type.

Fixes bug #7747.
This commit is contained in:
Jean-Marc Lasgouttes 2018-12-13 10:27:20 +01:00
parent 8a29bdb3d1
commit 2ec25c8eef

View File

@ -320,9 +320,11 @@ void InsetMathSpace::doDispatch(Cursor & cur, FuncRequest & cmd)
case LFUN_INSET_MODIFY:
if (cmd.getArg(0) == "mathspace") {
MathData ar;
Buffer * buf = buffer_;
if (createInsetMath_fromDialogStr(cmd.argument(), ar)) {
cur.recordUndo();
*this = *ar[0].nucleus()->asSpaceInset();
buffer_ = buf;
break;
}
}