* src/insets/insettabular.C (doDispatch): do not reset cursor/selection

if we have selected some cells (bug 2715).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16075 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2006-11-27 14:51:09 +00:00
parent 5df2f4ed06
commit 288fbc7a6b

View File

@ -494,7 +494,8 @@ void InsetTabular::doDispatch(LCursor & cur, FuncRequest & cmd)
//lyxerr << "# InsetTabular::MousePress\n" << cur.bv().cursor() << endl;
if (cmd.button() == mouse_button::button1
|| cmd.button() == mouse_button::button3) {
|| (cmd.button() == mouse_button::button3
&& (&bvcur.selBegin().inset() != this || !tablemode(bvcur)))) {
cur.selection() = false;
setCursorFromCoordinates(cur, cmd.x, cmd.y);
cur.resetAnchor();