1
0
mirror of https://github.com/qgis/QGIS.git synced 2025-03-12 00:02:25 -04:00

Fix another issue with reshape tool and polygons with rings

This commit is contained in:
Nyall Dawson 2015-06-08 19:38:28 +10:00
parent 3ab1230bac
commit 2948c45cba

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