]> git.lyx.org Git - lyx.git/commitdiff
Fix bug #5930: Crash when undoing info-insert in math mode.
authorVincent van Ravesteijn <vfr@lyx.org>
Sat, 9 May 2009 21:02:14 +0000 (21:02 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Sat, 9 May 2009 21:02:14 +0000 (21:02 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29598 a592a061-630c-0410-9148-cb99ea01b6c8

src/Text3.cpp

index 08d15959e2d78f248a47a9f7afda67aaa4bfd39b..6b2bce0dcc6037d34cc94344c208954061b7a440 100644 (file)
@@ -1523,6 +1523,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
                }
                if (!inset)
                        break;
+               cur.recordUndo();
                insertInset(cur, inset);
                cur.posForward();
                break;