mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
faa1ba4b5b
commit
dea6e50734
@ -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>
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user