]> git.lyx.org Git - features.git/commitdiff
* src/insets/insettabular.C (doDispatch): do not reset cursor/selection
authorJürgen Spitzmüller <spitz@lyx.org>
Mon, 27 Nov 2006 14:51:09 +0000 (14:51 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Mon, 27 Nov 2006 14:51:09 +0000 (14:51 +0000)
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

src/insets/insettabular.C

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