From b946e2209a6d1d753926b1030009d18a2ddd809b Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Sat, 9 May 2009 21:02:14 +0000 Subject: [PATCH] Fix bug #5930: Crash when undoing info-insert in math mode. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29598 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Text3.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Text3.cpp b/src/Text3.cpp index 08d15959e2..6b2bce0dcc 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -1523,6 +1523,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) } if (!inset) break; + cur.recordUndo(); insertInset(cur, inset); cur.posForward(); break; -- 2.39.2