mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 01:08:45 +00:00
* src/insets/insettabular.C (doDispatch): set cursor properly on mouse
(button 3) press. Fixes crash. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14226 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
27e57231b0
commit
3c05ffd48e
@ -1,3 +1,8 @@
|
||||
2006-06-26 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||
|
||||
* insettabular.C (doDispatch): set cursor properly on mouse
|
||||
(button 3) press. Fixes crash.
|
||||
|
||||
2006-05-22 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||
|
||||
* insettabular.C (doDispatch): do not mark the cursor undispatched
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user