[QGIS Commit] r9155 - trunk/qgis/src/core

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sun Aug 24 14:20:26 EDT 2008


Author: jef
Date: 2008-08-24 14:20:25 -0400 (Sun, 24 Aug 2008)
New Revision: 9155

Modified:
   trunk/qgis/src/core/qgsgeometry.cpp
Log:
fix #1245 (take two)

Modified: trunk/qgis/src/core/qgsgeometry.cpp
===================================================================
--- trunk/qgis/src/core/qgsgeometry.cpp	2008-08-24 16:29:31 UTC (rev 9154)
+++ trunk/qgis/src/core/qgsgeometry.cpp	2008-08-24 18:20:25 UTC (rev 9155)
@@ -109,14 +109,14 @@
 
 static GEOSGeometry *cloneGeosGeom( const GEOSGeometry *geom )
 {
-  if ( GEOSGeomTypeId( geom ) == GEOS_MULTIPOLYGON )
+  if ( GEOSGeomTypeId(( GEOSGeometry * ) geom ) == GEOS_MULTIPOLYGON )
   {
     QVector<GEOSGeometry *> geoms;
 
     try
     {
 
-      for ( int i = 0; i < GEOSGetNumGeometries( geom ); ++i )
+      for ( int i = 0; i < GEOSGetNumGeometries(( GEOSGeometry * )geom ); ++i )
         geoms << GEOSGeom_clone(( GEOSGeometry * ) GEOSGetGeometryN(( GEOSGeometry * ) geom, i ) );
 
       return createGeosCollection( GEOS_MULTIPOLYGON, geoms );



More information about the QGIS-commit mailing list