Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2004:
[Freeciv-Dev] (PR#10412) Xaw: mapctrl_btn_mapcanvas() has call of no-dec
Home

[Freeciv-Dev] (PR#10412) Xaw: mapctrl_btn_mapcanvas() has call of no-dec

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#10412) Xaw: mapctrl_btn_mapcanvas() has call of no-declared-yet variable
From: "Egor Vyscrebentsov via RT" <evyscr@xxxxxxxxx>
Date: Sat, 2 Oct 2004 11:17:45 -0700
Reply-to: RT_CorrespondAddressNotSet@xxxxxxxxxxxxxx

<URL: http://RT::WebBaseURL.not.configured:80/Ticket/Display.html?id=10412 >

CVS 2004-10-02 20:13 +0400, Xaw client.

Xaw client does not compiled now, due to misorder in
declaration of variables in mapctrl_btn_mapcanvas.

Patch attached.

Thanks, evyscr.
diff -urN freeciv-orig/client/gui-xaw/mapctrl.c freeciv/client/gui-xaw/mapctrl.c
--- freeciv-orig/client/gui-xaw/mapctrl.c       2004-10-02 20:13:58 +0400
+++ freeciv/client/gui-xaw/mapctrl.c    2004-10-02 21:46:03 +0400
@@ -200,8 +200,8 @@
 **************************************************************************/
 void mapctrl_btn_mapcanvas(XEvent *event)
 {
-  struct tile *ptile = canvas_pos_to_tile(ev->x, ev->y);
   XButtonEvent *ev=&event->xbutton;
+  struct tile *ptile = canvas_pos_to_tile(ev->x, ev->y);
 
   if (!can_client_change_view()) {
     return;

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#10412) Xaw: mapctrl_btn_mapcanvas() has call of no-declared-yet variable, Egor Vyscrebentsov via RT <=