>>>>> "John" == John Levon <[EMAIL PROTECTED]> writes:

John> On Wed, Jul 24, 2002 at 07:34:20PM +0200, Edwin Leuven wrote:
>> what I do is the following 1. start lyx 2. insert 5x5 table 3a.
>> click left mouse button and keep it pressed for ca 5 secs

John> Try the below. Same goes for 1.2.x

When trying to apply to 1.2.x, I saw I needed the attached patch to
avoid a warning

The reason I meantion it is that I do not understand how a test like
                if (ev->xmotion.x != x_old ||
                    ev->xmotion.y != y_old ||
                    fl_get_scrollbar_value(area->scrollbar) != scrollbar_value_old

can make sense since one is comparing a double with an int.

John, can you make sure the logic is right? (I am especially wary of 1.2.1).

JMarc

Index: src/frontends/xforms/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/xforms/ChangeLog,v
retrieving revision 1.498
diff -u -p -r1.498 ChangeLog
--- src/frontends/xforms/ChangeLog      25 Jul 2002 18:15:33 -0000      1.498
+++ src/frontends/xforms/ChangeLog      26 Jul 2002 12:37:45 -0000
@@ -1,3 +1,8 @@
+2002-07-26  Jean-Marc Lasgouttes  <[EMAIL PROTECTED]>
+
+       * XWorkArea.C (work_area_handler): change type of
+       scrollbar_value_old to double
+
 2002-07-25  John Levon  <[EMAIL PROTECTED]>
 
        * lyx_gui.C:
Index: src/frontends/xforms/XWorkArea.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/xforms/XWorkArea.C,v
retrieving revision 1.17
diff -u -p -r1.17 XWorkArea.C
--- src/frontends/xforms/XWorkArea.C    25 Jul 2002 18:15:33 -0000      1.17
+++ src/frontends/xforms/XWorkArea.C    26 Jul 2002 12:37:45 -0000
@@ -332,7 +332,7 @@ int XWorkArea::work_area_handler(FL_OBJE
 {
        static int x_old = -1;
        static int y_old = -1;
-       static long scrollbar_value_old = -1;
+       static double scrollbar_value_old = -1;
 
        XEvent * ev = static_cast<XEvent*>(xev);
        XWorkArea * area = static_cast<XWorkArea*>(ob->u_vdata);

Reply via email to