[mapserver-commits] r12820 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Mon Nov 28 10:29:45 EST 2011


Author: assefa
Date: 2011-11-28 07:29:45 -0800 (Mon, 28 Nov 2011)
New Revision: 12820

Modified:
   trunk/mapserver/mapagg.cpp
Log:
correct windows build

Modified: trunk/mapserver/mapagg.cpp
===================================================================
--- trunk/mapserver/mapagg.cpp	2011-11-28 14:49:09 UTC (rev 12819)
+++ trunk/mapserver/mapagg.cpp	2011-11-28 15:29:45 UTC (rev 12820)
@@ -948,7 +948,7 @@
     double invst = 1.0/st;
     double r0; /* distance from first hatch line to the top-left (if angle in  0,pi/2)
                   or bottom-left (if angle in -pi/2,0) corner of the hatch bbox */ 
-    double rmax = sqrt(sx*sx+sy*sy); /* distance to the furthest hatch we will have to create
+    double rmax = sqrt((double)(sx*sx+sy*sy)); /* distance to the furthest hatch we will have to create
 TODO: this could be optimized for bounding boxes where width is very different than height for
 certain hatch angles */
     double rref= rx*ct + ry*st; /* distance to the line passing through the refpoint, origin is



More information about the mapserver-commits mailing list