mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-10 18:58:10 +00:00
Set the cursor to the start of the cell when doing multicell selections,
since it doesn't make sense to select two and a half cells. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26101 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b2f5782253
commit
510174ba17
@ -3192,6 +3192,12 @@ void InsetTabular::doDispatch(Cursor & cur, FuncRequest & cmd)
|
||||
setCursorFromCoordinates(cur, cmd.x, cmd.y);
|
||||
bvcur.setCursor(cur);
|
||||
bvcur.selection() = true;
|
||||
// if this is a multicell selection, we just set the cursor to
|
||||
// the beginning of the cell's text.
|
||||
if (bvcur.selBegin().idx() != bvcur.selEnd().idx()) {
|
||||
bvcur.pit() = 0;
|
||||
bvcur.pos() = 0;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user