Juergen Spitzmueller wrote:
> Indeed, dePM is not triggered at all with the mouse in tabular cells, which
> is a bug (also in 1.4 btw).

This patch fixes that for 1.4. For 1.5, you'll have to do something like

                if (cmd.button() == mouse_button::button1 
                    || (cmd.button() == mouse_button::button3 
                        && (&bvcur.selBegin().inset() != this || 
!tablemode(bvcur)))) {
                        cur.selection() = false;
                        setCursorFromCoordinates(cur, cmd.x, cmd.y);
+                       if (!bvcur.selection() && !cur.bv().mouseSetCursor(cur))
+                               cur.noUpdate();
                        cur.resetAnchor();

After my dePM fix in the "Showstopper!" thread is in.

Jean-Marc, would this be o.k. for 1.4?

Jürgen
Index: src/insets/insettabular.C
===================================================================
--- src/insets/insettabular.C	(Revision 16228)
+++ src/insets/insettabular.C	(Arbeitskopie)
@@ -478,6 +478,7 @@ void InsetTabular::doDispatch(LCursor & 
 			&& (&bvcur.selBegin().inset() != this || !tablemode(bvcur)))) {
 			cur.selection() = false;
 			setCursorFromCoordinates(cur, cmd.x, cmd.y);
+			cur.bv().mouseSetCursor(cur);
 			cur.resetAnchor();
 			bvcur = cur;
 			break;

Reply via email to