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

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15088 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2006-09-20 12:16:26 +00:00
parent e81cc81232
commit 9917aca0b7

View File

@ -1849,7 +1849,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();
}