Skip to content
Permalink
Browse files

fix transform Polygon to CurvePolygon when splitting

  • Loading branch information
vcloarec authored and nyalldawson committed Sep 1, 2020
1 parent 4ca7cd3 commit d35875729c06cf79904175b13b539cfd5a9e9125
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/core/qgsvectorlayereditutils.cpp
@@ -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();

0 comments on commit d358757

Please sign in to comment.
You can’t perform that action at this time.