* insettabular.C (cutSelection): reset cursor when it is invalid.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15087 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2006-09-20 12:13:38 +00:00
parent 3d3911d32d
commit a84c402884
3 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2006-09-20 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* insettabular.C (cutSelection): reset cursor when it is invalid.
2006-09-19 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* insetert.C (doDispatch):

View File

@ -1757,7 +1757,10 @@ void InsetTabular::cutSelection(LCursor & cur)
}
// cursor position might be invalid now
cur.pos() = cur.lastpos();
if (cur.pit() > cur.lastpit())
cur.pit() = cur.lastpit();
if (cur.pos() > cur.lastpos())
cur.pos() = cur.lastpos();
cur.clearSelection();
}

View File

@ -90,6 +90,8 @@ What's new
- Fix a crash with change tracking in tables (bug 2600).
- Fix a crash when deleting a multi-cell selection in a tabular.
- Fix a crash when undoing super/subscript deletion (bug 2727).
- Fix a crash when the cursor is in an empty script and the user