Skip to content
Permalink
Browse files
fix #1245 (take two)
git-svn-id: http://svn.osgeo.org/qgis/trunk@9155 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Aug 24, 2008
1 parent 07cd098 commit ed45af8467b947373bbf6a7e18a45a122eb25ecc
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgsgeometry.cpp
@@ -109,14 +109,14 @@ static GEOSGeometry *createGeosCollection( int typeId, QVector<GEOSGeometry*> ge

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 );

0 comments on commit ed45af8

Please sign in to comment.