mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Move assignment where needed
This commit is contained in:
parent
cf07d4825f
commit
59096c9265
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user