]> git.lyx.org Git - features.git/commitdiff
Set buffer correctly when changing math space type.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 13 Dec 2018 09:27:20 +0000 (10:27 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 12:39:51 +0000 (14:39 +0200)
Fixes bug #7747.

src/mathed/InsetMathSpace.cpp

index 627664b63116b56b1cf271fe4eab246adcba463e..db096092b8e0d2b8767b0f960827bee9417b44ef 100644 (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;
                        }
                }