Skip to content

Commit

Permalink
Fix another issue with reshape tool and polygons with rings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 8, 2015
1 parent 3ab1230 commit 2948c45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/geometry/qgsgeos.cpp
Expand Up @@ -1907,7 +1907,7 @@ GEOSGeometry* QgsGeos::reshapePolygon( const GEOSGeometry* polygon, const GEOSGe
QList<GEOSGeometry*> ringList;
if ( nRings > 0 )
{
GEOSGeometry* outerRingPoly = GEOSGeom_createPolygon_r( geosinit.ctxt, GEOSGeom_clone( newOuterRing ), 0, 0 );
GEOSGeometry* outerRingPoly = GEOSGeom_createPolygon_r( geosinit.ctxt, GEOSGeom_clone_r( geosinit.ctxt, newOuterRing ), 0, 0 );
if ( outerRingPoly )
{
GEOSGeometry* currentRing = 0;
Expand Down

0 comments on commit 2948c45

Please sign in to comment.