]> 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>
Fri, 14 Dec 2018 18:39:54 +0000 (19:39 +0100)
Fixes bug #7747.

(cherry picked from commit 2ec25c8eef8c9acca3cb572800eab933c8564831)

src/mathed/InsetMathSpace.cpp
status.23x

index 88aae1d4a66a85771e783ba88e7aa93b58a561d6..79a431428537617daff108b0025a772256d9ace8 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;
                        }
                }
index 8eaa54b0a52a17d62661afb82ae624ad9d58d064..4f50e5c198b79d19d900fe62c437f335930fbc10 100644 (file)
@@ -63,6 +63,7 @@ What's new
 
 - Do not swallow backspaces in custom viewer/editor paths (bug 9622).
 
+- Fix broken space dialog in mathed (bug 7747).
 
 * INTERNALS