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:
Richard Heck 2008-08-08 19:34:47 +00:00
parent b2f5782253
commit 510174ba17

View File

@ -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;