From 04720fe8b893e45b047bb35e2f1a1d734329c617 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Wed, 31 Jul 2002 10:15:50 +0000 Subject: [PATCH] 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 --- src/insets/ChangeLog | 11 +++++++---- src/insets/insettabular.C | 7 ++++--- status.12x | 2 ++ 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 9e1076d709..8a577356cc 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,9 +1,12 @@ +2002-07-25 Edwin Leuven + + * insettabular.C (insetMotionNotify): reduce updates on mouse move + in selected cell + 2002-07-26 Juergen Vigna - * insettabular.C: ditto - - * insettext.C: ditto - + * insettabular.C: + * insettext.C: * insetcollapsable.C: adaptions to changes in lyxfind.C 2002-07-23 Jean-Marc Lasgouttes diff --git a/src/insets/insettabular.C b/src/insets/insettabular.C index 4ecf77c1a8..b0fa613845 100644 --- a/src/insets/insettabular.C +++ b/src/insets/insettabular.C @@ -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); } diff --git a/status.12x b/status.12x index 3de3c0d328..0f37c356e2 100644 --- a/status.12x +++ b/status.12x @@ -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