From: Jean-Marc Lasgouttes Date: Thu, 13 Dec 2018 09:27:20 +0000 (+0100) Subject: Set buffer correctly when changing math space type. X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=2b1b3c6bc7aed7ddd1c3064bf400528580e55f53;p=features.git Set buffer correctly when changing math space type. Fixes bug #7747. --- diff --git a/src/mathed/InsetMathSpace.cpp b/src/mathed/InsetMathSpace.cpp index 627664b631..db096092b8 100644 --- a/src/mathed/InsetMathSpace.cpp +++ b/src/mathed/InsetMathSpace.cpp @@ -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; } }