Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix convertToCurve not converting CURVEPOLYGON
  • Loading branch information
olivierdalang authored and nyalldawson committed Jun 21, 2021
1 parent 1a9501b commit 942bad2
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/core/geometry/qgsinternalgeometryengine.cpp
Expand Up @@ -1419,13 +1419,6 @@ QgsGeometry QgsInternalGeometryEngine::convertToCurves( double distanceTolerance
return QgsGeometry( mGeometry->clone() ); // point geometry, nothing to do
}

if ( QgsWkbTypes::isCurvedType( mGeometry->wkbType() ) )
{
// already curved. In future we may want to allow this, and convert additional candidate segments
// in an already curved geometry to curves
return QgsGeometry( mGeometry->clone() );
}

if ( const QgsGeometryCollection *gc = qgsgeometry_cast< const QgsGeometryCollection *>( mGeometry ) )
{
int numGeom = gc->numGeometries();
Expand Down

0 comments on commit 942bad2

Please sign in to comment.