[geos-commits] r3271 - trunk/capi

svn_geos at osgeo.org svn_geos at osgeo.org
Wed Mar 16 18:29:35 EDT 2011


Author: strk
Date: 2011-03-16 15:29:35 -0700 (Wed, 16 Mar 2011)
New Revision: 3271

Modified:
   trunk/capi/geos_ts_c.cpp
Log:
Use GEOSVALID flag correctly, thanks Mat for spotting this.

Modified: trunk/capi/geos_ts_c.cpp
===================================================================
--- trunk/capi/geos_ts_c.cpp	2011-03-11 14:40:35 UTC (rev 3270)
+++ trunk/capi/geos_ts_c.cpp	2011-03-16 22:29:35 UTC (rev 3271)
@@ -870,7 +870,7 @@
         using geos::operation::valid::TopologyValidationError;
 
         IsValidOp ivo(g);
-        if ( flags && GEOSVALID_ALLOW_SELFTOUCHING_RING_FORMING_HOLE ) {
+        if ( flags & GEOSVALID_ALLOW_SELFTOUCHING_RING_FORMING_HOLE ) {
         	ivo.setSelfTouchingRingFormingHoleValid(true);
         }
         TopologyValidationError *err = ivo.getValidationError();



More information about the geos-commits mailing list