Like John's patch this should go in I think (also 1.2.X)
Index: src/insets/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/ChangeLog,v
retrieving revision 1.474
diff -u -p -r1.474 ChangeLog
--- src/insets/ChangeLog	23 Jul 2002 21:03:38 -0000	1.474
+++ src/insets/ChangeLog	25 Jul 2002 07:59:03 -0000
@@ -1,3 +1,7 @@
+2002-07-25  Edwin Leuven <[EMAIL PROTECTED]>
+
+	* insettabular.C: reduce updates on mouse move in selected cell
+
 2002-07-23  Jean-Marc Lasgouttes  <[EMAIL PROTECTED]>
 
 	* insetminipage.h (noFontChange): 
Index: src/insets/insettabular.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/insettabular.C,v
retrieving revision 1.212
diff -u -p -r1.212 insettabular.C
--- src/insets/insettabular.C	21 Jul 2002 21:21:04 -0000	1.212
+++ src/insets/insettabular.C	25 Jul 2002 07:59:03 -0000
@@ -862,15 +862,16 @@ void InsetTabular::insetMotionNotify(Buf
 	}
 
 	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);
 }
 


Reply via email to