Set buffer correctly when changing math space type.

Fixes bug #7747.

(cherry picked from commit 2ec25c8eef)
This commit is contained in:
Jean-Marc Lasgouttes 2018-12-13 10:27:20 +01:00
parent 05282ceeec
commit 0e6cb4e599
2 changed files with 3 additions and 0 deletions

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

View File

@ -63,6 +63,7 @@ What's new
- Do not swallow backspaces in custom viewer/editor paths (bug 9622).
- Fix broken space dialog in mathed (bug 7747).
* INTERNALS