make LFUN_CUT in mathed undoable (bug 2041)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10485 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2005-09-26 11:14:59 +00:00
parent 65224675ce
commit 97ca98f0b7
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2005-09-27 Jürgen Spitzmüller <j.spitzmueller@gmx.de> 2005-09-27 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* math_nestinset.C (doDispatch): record LFUN_CUT in undo stack
(fixes bug 2041).
* math_data.C (draw): add nested insets to the coord cache * math_data.C (draw): add nested insets to the coord cache
(fixes the major part of bug 1918). (fixes the major part of bug 1918).

View File

@ -423,6 +423,7 @@ void MathNestInset::doDispatch(LCursor & cur, FuncRequest & cmd)
} }
case LFUN_CUT: case LFUN_CUT:
recordUndo(cur);
cutSelection(cur, true, true); cutSelection(cur, true, true);
cur.message(_("Cut")); cur.message(_("Cut"));
// Prevent stale position >= size crash // Prevent stale position >= size crash