diff --git a/src/core/qgsgeometry.cpp b/src/core/qgsgeometry.cpp index 5154dd69ef3..f94f1c2e22c 100644 --- a/src/core/qgsgeometry.cpp +++ b/src/core/qgsgeometry.cpp @@ -5401,22 +5401,6 @@ int QgsGeometry::splitPolygonGeometry( GEOSGeometry* splitLine, QList3) || ((GEOS_VERSION_MAJOR==3) && (GEOS_VERSION_MINOR>=1))) - GEOSGeometry *cutEdges = GEOSPolygonizer_getCutEdges( &nodedGeometry, 1 ); - if ( cutEdges ) - { - if ( numberOfGeometries( cutEdges ) > 0 ) - { - GEOSGeom_destroy( cutEdges ); - GEOSGeom_destroy( nodedGeometry ); - return 3; - } - - GEOSGeom_destroy( cutEdges ); - } -#endif - GEOSGeometry *polygons = GEOSPolygonize( &nodedGeometry, 1 ); if ( !polygons || numberOfGeometries( polygons ) == 0 ) { @@ -5486,6 +5470,14 @@ int QgsGeometry::splitPolygonGeometry( GEOSGeometry* splitLine, QList