From: Jean-Marc Lasgouttes Date: Fri, 15 Aug 2008 16:15:20 +0000 (+0000) Subject: Fix bug 2449: Insertion of math delimiter cannot completely be undone X-Git-Tag: 1.6.10~3636 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e22b5d0718439267650d6aa16a80d0bc895b42dc;p=lyx.git 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 --- 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);