Skip to content

Commit 77d68b0

Browse files
committed
Fix reshape assertion if reshape line does not intersect twice
1 parent 35834e8 commit 77d68b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/geometry/qgsgeos.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1558,7 +1558,7 @@ QgsAbstractGeometryV2* QgsGeos::reshapeGeometry( const QgsLineStringV2& reshapeW
15581558
}
15591559
else
15601560
{
1561-
newGeoms[i] = GEOSGeom_clone_r( geosinit.ctxt, GEOSGetGeometryN( mGeos, i ) );
1561+
newGeoms[i] = GEOSGeom_clone_r( geosinit.ctxt, GEOSGetGeometryN_r( geosinit.ctxt, mGeos, i ) );
15621562
}
15631563
}
15641564
GEOSGeom_destroy_r( geosinit.ctxt, reshapeLineGeos );

0 commit comments

Comments
 (0)