commit 81abfdc13d2fd2f652aaed5291074526fa5bbecf
Author: Richard Kimberly Heck <[email protected]>
Date:   Tue May 8 02:07:47 2018 -0400

    Fix problem noted by Scott in bug #11125.
    
    Need to set the Buffers for math insets, too.
---
 src/Undo.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/Undo.cpp b/src/Undo.cpp
index eb77228..4510e25 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 {

Reply via email to