Lars Gullik Bj�nnes wrote:

> Andre Poenitz <[EMAIL PROTECTED]> writes:
> 
> | On Tue, Dec 17, 2002 at 09:38:47AM +0100, Alfredo Braunstein wrote:
> | > It fixes a critical bug (subject of the thread)...
> | 
> | Aehm. Already forgot that...
> | 
> | Ok, so let's have Lars' nod on that.
> 
> I only want the _minimal_ fix for this problem now, even if that might
> be a bit hackish or over-simplified.
> 

This would be it.

Btw: I've found an (unrelated) bug. If you insert a reference within a 
float, choose a label from the list (located outside the float), and click 
GOTO, the cursor ends up on wrong or unexistent positions. Will try to dig 
further.

Bye, Alfredo
Index: ChangeLog
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/insets/ChangeLog,v
retrieving revision 1.546
diff -u -r1.546 ChangeLog
--- ChangeLog	2002/12/08 22:33:55	1.546
+++ ChangeLog	2002/12/17 13:48:49
@@ -1,3 +1,7 @@
+2002-12-17  Alfredo Braunstein <[EMAIL PROTECTED]>
+	* insettext.C (lfunMouseRelease): hackish solution to the "double
+	menu open" bug
+
 2002-12-08  Lars Gullik Bj�nnes  <[EMAIL PROTECTED]>
 
 	* insetfloat.C (addToToc): use the floats name not its type
Index: insettext.C
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/insets/insettext.C,v
retrieving revision 1.336
diff -u -r1.336 insettext.C
--- insettext.C	2002/11/27 10:30:26	1.336
+++ insettext.C	2002/12/17 13:48:52
@@ -1124,7 +1124,9 @@
 			inset_y = ciy(bv) + drawTextYOffset;
 			cmd1.x = cmd.x - inset_x;
 			cmd1.y = cmd.x - inset_y;
-			ret = inset->localDispatch(cmd1);
+// note that we should do ret = inset->localDispatch(cmd1) 
+// and fix this instead (Alfredo);
+			ret = true;
 			inset->edit(bv, cmd1.x, cmd1.y, cmd.button());
 		}
 		updateLocal(bv, CURSOR_PAR, false);

Reply via email to