[Thuban-commits] r2716 - in trunk/thuban: . libraries/thuban

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Nov 6 13:00:13 CET 2006


Author: dpinte
Date: 2006-11-06 13:00:12 +0100 (Mon, 06 Nov 2006)
New Revision: 2716

Modified:
   trunk/thuban/ChangeLog
   trunk/thuban/libraries/thuban/wxproj.cpp
Log:
2006-11-06 Didrik Pinte <dpinte at itae.be>

       * libraries/thuban/wxproj.cpp: bugfix - allow compilation with
       msvc++ toolkit 2003



Modified: trunk/thuban/ChangeLog
===================================================================
--- trunk/thuban/ChangeLog	2006-11-06 10:15:06 UTC (rev 2715)
+++ trunk/thuban/ChangeLog	2006-11-06 12:00:12 UTC (rev 2716)
@@ -1,3 +1,8 @@
+2006-11-06 Didrik Pinte <dpinte at itae.be>
+
+	* libraries/thuban/wxproj.cpp: bugfix - allow compilation with
+	msvc++ toolkit 2003
+
 2006-11-06 Bernhard Reiter <bernhard at intevation.de>
 
 	Made it easier to run PostGIS test on Debian Etch. Improving

Modified: trunk/thuban/libraries/thuban/wxproj.cpp
===================================================================
--- trunk/thuban/libraries/thuban/wxproj.cpp	2006-11-06 10:15:06 UTC (rev 2715)
+++ trunk/thuban/libraries/thuban/wxproj.cpp	2006-11-06 12:00:12 UTC (rev 2716)
@@ -456,7 +456,7 @@
 
     vx = ex - sx; vy = ey - sy;
 
-    len = (long)sqrt(vx * vx + vy * vy);
+    len = (long)sqrt( (double) vx * vx + vy * vy);
     if (!len)
 	/* degenerate case of coincident end points. Assumes that some
 	 * other part of the code has already determined whether the end



More information about the Thuban-commits mailing list