Skip to content

Commit

Permalink
fix transform Polygon to CurvePolygon when splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
vcloarec authored and nyalldawson committed Sep 1, 2020
1 parent 4ca7cd3 commit d358757
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/qgsvectorlayereditutils.cpp
Expand Up @@ -313,6 +313,9 @@ QgsGeometry::OperationResult QgsVectorLayerEditUtils::splitFeatures( const QgsCu
QgsFeatureIterator features;
const QgsFeatureIds selectedIds = mLayer->selectedFeatureIds();

// deactivate preserving circular if the curve contains only straight segments to avoid transforming Polygon to CurvePolygon
preserveCircular &= curve->hasCurvedSegments();

if ( !selectedIds.isEmpty() ) //consider only the selected features if there is a selection
{
features = mLayer->getSelectedFeatures();
Expand Down

0 comments on commit d358757

Please sign in to comment.