]> git.lyx.org Git - features.git/commitdiff
Fix problem noted by Scott in bug #11125.
authorRichard Kimberly Heck <rikiheck@lyx.org>
Tue, 8 May 2018 06:07:47 +0000 (02:07 -0400)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Tue, 8 May 2018 06:12:19 +0000 (02:12 -0400)
Need to set the Buffers for math insets, too.

(cherry picked from commit 81abfdc13d2fd2f652aaed5291074526fa5bbecf)

src/Undo.cpp

index 01394bc27f79ff2a309be37d55f58b5a7644949c..5f112b80af335ca6a20d82f868cba4f08e4e0777 100644 (file)
@@ -472,6 +472,7 @@ void Undo::Private::doTextUndoOrRedo(CursorData & cur, UndoElementStack & stack,
                //LYXERR0("undo.array: " << *undo.array);
                LBUFERR(undo.array);
                dit.cell().swap(*undo.array);
+               dit.inset().setBuffer(buffer_);
                delete undo.array;
                undo.array = 0;
        } else {