From 2b1b3c6bc7aed7ddd1c3064bf400528580e55f53 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 13 Dec 2018 10:27:20 +0100 Subject: [PATCH] Set buffer correctly when changing math space type. Fixes bug #7747. --- src/mathed/InsetMathSpace.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; } } -- 2.39.5