[mapserver-commits] r8001 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Sat Oct 25 06:12:04 EDT 2008
Author: tbonfort
Date: 2008-10-25 06:12:04 -0400 (Sat, 25 Oct 2008)
New Revision: 8001
Modified:
trunk/mapserver/mapprimitive.c
Log:
fix center of gravity computation for polygons with clockwise ordered points
Modified: trunk/mapserver/mapprimitive.c
===================================================================
--- trunk/mapserver/mapprimitive.c 2008-10-24 15:42:15 UTC (rev 8000)
+++ trunk/mapserver/mapprimitive.c 2008-10-25 10:12:04 UTC (rev 8001)
@@ -1022,8 +1022,8 @@
if(area > largestArea) {
largestArea = area;
- sx = tsx;
- sy = tsy;
+ sx = s>0?tsx:-tsx;
+ sy = s>0?tsy:-tsy;
}
}
}
More information about the mapserver-commits
mailing list