diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 6786f3348c..91c504d8d8 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,8 @@ +2006-06-26 Jürgen Spitzmüller + + * insettabular.C (doDispatch): set cursor properly on mouse + (button 3) press. Fixes crash. + 2006-05-22 Jürgen Spitzmüller * insettabular.C (doDispatch): do not mark the cursor undispatched diff --git a/src/insets/insettabular.C b/src/insets/insettabular.C index aed5a443e0..eaa1dfc7a6 100644 --- a/src/insets/insettabular.C +++ b/src/insets/insettabular.C @@ -459,7 +459,8 @@ 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) { + if (cmd.button() == mouse_button::button1 + || cmd.button() == mouse_button::button3) { cur.selection() = false; setCursorFromCoordinates(cur, cmd.x, cmd.y); cur.resetAnchor(); @@ -470,12 +471,7 @@ void InsetTabular::doDispatch(LCursor & cur, FuncRequest & cmd) if (cmd.button() == mouse_button::button2) { cmd = FuncRequest(LFUN_PASTESELECTION, "paragraph"); doDispatch(cur, cmd); - break; } - - if (cmd.button() == mouse_button::button3) - bvcur.setCursor(cur); - break; case LFUN_MOUSE_MOTION: