From e22b5d0718439267650d6aa16a80d0bc895b42dc Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Fri, 15 Aug 2008 16:15:20 +0000 Subject: [PATCH] Fix bug 2449: Insertion of math delimiter cannot completely be undone http://bugzilla.lyx.org/show_bug.cgi?id=2449 * Text3.cpp (dispatch): handle undo for LFUN_MATH_INSERT, LFUN_MATH_MATRIX, LFUN_MATH_DELIM and LFUN_MATH_BIGDELIM. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26174 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 5fe69e6708..bcb13e1e3b 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -1499,6 +1499,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) case LFUN_MATH_MATRIX: case LFUN_MATH_DELIM: case LFUN_MATH_BIGDELIM: { + cur.recordUndo(); cap::replaceSelection(cur); cur.insert(new InsetMathHull(hullSimple)); checkAndActivateInset(cur, true); -- 2.39.5