fix selecting performance in tabulars

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH-1_2_X@4817 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2002-07-31 10:15:50 +00:00
parent 3bb27b97b2
commit 04720fe8b8
3 changed files with 13 additions and 7 deletions

View File

@ -1,9 +1,12 @@
2002-07-25 Edwin Leuven <leuven@fee.uva.nl>
* insettabular.C (insetMotionNotify): reduce updates on mouse move
in selected cell
2002-07-26 Juergen Vigna <jug@sad.it>
* insettabular.C: ditto
* insettext.C: ditto
* insettabular.C:
* insettext.C:
* insetcollapsable.C: adaptions to changes in lyxfind.C
2002-07-23 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>

View File

@ -861,15 +861,16 @@ void InsetTabular::insetMotionNotify(BufferView * bv, int x, int y, int button)
}
hideInsetCursor(bv);
// int const old_cell = actcell;
int const old_cell = actcell;
setPos(bv, x, y);
if (!hasSelection()) {
setSelection(actcell, actcell);
} else {
updateLocal(bv, SELECTION, false);
} else if (old_cell!=actcell) {
setSelection(sel_cell_start, actcell);
updateLocal(bv, SELECTION, false);
}
updateLocal(bv, SELECTION, false);
showInsetCursor(bv);
}

View File

@ -65,6 +65,8 @@ What's new
- fix bug where using case changing commands on the last word of a
paragraph would change the whole document (without any undo possible!)
- fix performance bug when selecting table cells with the mouse
- in commands that operate on words (Insert>Index...), make sure not
to include insets in words