mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +00:00
* 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:
parent
e81cc81232
commit
9917aca0b7
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user