From: Richard Kimberly Heck Date: Tue, 8 May 2018 06:07:47 +0000 (-0400) Subject: Fix problem noted by Scott in bug #11125. X-Git-Tag: 2.3.1~89 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=69ab4d17c884965f032af7c6c48c1bc4d6279fa0;p=features.git Fix problem noted by Scott in bug #11125. Need to set the Buffers for math insets, too. (cherry picked from commit 81abfdc13d2fd2f652aaed5291074526fa5bbecf) --- diff --git a/src/Undo.cpp b/src/Undo.cpp index 01394bc27f..5f112b80af 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 {