On Fri, Nov 03, 2000 at 10:16:13PM +0900, R. Lahaye wrote:
>
> Hi,
>
> I keep sending these warnings till somebody shoots me....
>
> R.
>
> insettext.C: In method `void InsetText::InsetButtonPress(class BufferView *, int ,
>int, int)':
> insettext.C:600: warning: initialization of non-const reference `int &' from rvalue
>`int'
> ../../src/BufferView.h:75: warning: in passing argument 3 of
>`BufferView::checkInsetHit(LyXText *, int &, int &, unsigned int)'
This one prevents compiling with gcc 2.95.2. André sent the patch:
Index: insets/insettext.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/insettext.C,v
retrieving revision 1.95
diff -u -r1.95 insettext.C
--- insets/insettext.C 2000/11/02 16:19:53 1.95
+++ insets/insettext.C 2000/11/02 17:35:42
@@ -595,8 +595,8 @@
no_selection = false;
int tmp_x = x - drawTextXOffset;
- int tmp_y = y + insetAscent;
- Inset * inset = bv->checkInsetHit(TEXT(bv), tmp_x, tmp_y-TEXT(bv)->first,
+ int tmp_y = y + insetAscent - TEXT(bv)->first;
+ Inset * inset = bv->checkInsetHit(TEXT(bv), tmp_x, tmp_y,
button);
HideInsetCursor(bv);
--
Stid