Move assignment where needed

This commit is contained in:
Richard Kimberly Heck 2021-01-05 18:22:09 -05:00
parent cf07d4825f
commit 59096c9265

View File

@ -320,8 +320,8 @@ 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)) {
Buffer * buf = buffer_;
cur.recordUndo();
*this = *ar[0].nucleus()->asSpaceInset();
buffer_ = buf;