[mapguide-commits] r4722 - trunk/MgDev/Common/Geometry/Spatial

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Tue Mar 30 17:48:15 EDT 2010


Author: NormOlsen
Date: 2010-03-30 17:48:13 -0400 (Tue, 30 Mar 2010)
New Revision: 4722

Modified:
   trunk/MgDev/Common/Geometry/Spatial/SpatialUtility.cpp
Log:
Another try at fixing the Linux build.

Modified: trunk/MgDev/Common/Geometry/Spatial/SpatialUtility.cpp
===================================================================
--- trunk/MgDev/Common/Geometry/Spatial/SpatialUtility.cpp	2010-03-30 21:38:45 UTC (rev 4721)
+++ trunk/MgDev/Common/Geometry/Spatial/SpatialUtility.cpp	2010-03-30 21:48:13 UTC (rev 4722)
@@ -1085,7 +1085,10 @@
             // The query point is not on the polygon, so its inside/outside
             // status can be determined by the number of intersections.  An
             // odd number of intersections says the point is inside.
-            pointStatus = ((count % 2) == 1) ? MgSpatialUtilityStatus::PointIsInside : MgSpatialUtilityStatus::PointIsOutside;
+            // This rather strange sequence of code is required to overcome
+            // a glitch in the Linux build tools.
+            INT32 xxx = MgSpatialUtilityStatus::PointIsOutside;
+            pointStatus = ((count % 2) == 1) ? MgSpatialUtilityStatus::PointIsInside : xxx;
         }
     }
     return pointStatus;



More information about the mapguide-commits mailing list