From 81abfdc13d2fd2f652aaed5291074526fa5bbecf Mon Sep 17 00:00:00 2001 From: Richard Kimberly Heck Date: Tue, 8 May 2018 02:07:47 -0400 Subject: [PATCH] Fix problem noted by Scott in bug #11125. Need to set the Buffers for math insets, too. --- src/Undo.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Undo.cpp b/src/Undo.cpp index eb7722839c..4510e25c4b 100644 --- a/src/Undo.cpp +++ b/src/Undo.cpp @@ -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 {