Fix problem noted by Scott in bug #11125.

Need to set the Buffers for math insets, too.

(cherry picked from commit 81abfdc13d)
This commit is contained in:
Richard Kimberly Heck 2018-05-08 02:07:47 -04:00
parent 532d3600f2
commit 69ab4d17c8

View 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 {