Skip to content

Commit 55493aa

Browse files
author
jef
committed
fix #1245 (take two)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9155 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 5331631 commit 55493aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/qgsgeometry.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,14 @@ static GEOSGeometry *createGeosCollection( int typeId, QVector<GEOSGeometry*> ge
109109

110110
static GEOSGeometry *cloneGeosGeom( const GEOSGeometry *geom )
111111
{
112-
if ( GEOSGeomTypeId( geom ) == GEOS_MULTIPOLYGON )
112+
if ( GEOSGeomTypeId(( GEOSGeometry * ) geom ) == GEOS_MULTIPOLYGON )
113113
{
114114
QVector<GEOSGeometry *> geoms;
115115

116116
try
117117
{
118118

119-
for ( int i = 0; i < GEOSGetNumGeometries( geom ); ++i )
119+
for ( int i = 0; i < GEOSGetNumGeometries(( GEOSGeometry * )geom ); ++i )
120120
geoms << GEOSGeom_clone(( GEOSGeometry * ) GEOSGetGeometryN(( GEOSGeometry * ) geom, i ) );
121121

122122
return createGeosCollection( GEOS_MULTIPOLYGON, geoms );

0 commit comments

Comments
 (0)