fix bug 1960 and bug 1981 properly, using cur.normalize()

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10457 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2005-09-19 09:57:04 +00:00
parent faa1ba4b5b
commit dea6e50734
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2005-09-15 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* math_nestinset.C (doDispatch): use cur.normalize() to prevent crash
when cutting in math array (bugs 1960, 1981).
2005-08-19 Martin Vermeer <martin.vermeer@hut.fi>

View File

@ -423,9 +423,10 @@ void MathNestInset::doDispatch(LCursor & cur, FuncRequest & cmd)
}
case LFUN_CUT:
cur.pos() = 0; // Prevent stale position >= size crash
cutSelection(cur, true, true);
cur.message(_("Cut"));
// Prevent stale position >= size crash
cur.normalize();
break;
case LFUN_COPY: