Skip to content
Permalink
Browse files
Fix split parts tool only leaves one of the newly created parts (fix #…
  • Loading branch information
nyalldawson committed Oct 13, 2015
1 parent e193c7c commit 5de94447187e353f916520becccb1c645abd5706
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/core/qgsvectorlayereditutils.cpp
@@ -442,6 +442,9 @@ int QgsVectorLayerEditUtils::splitParts( const QList<QgsPoint>& splitLine, bool
if ( splitFunctionReturn == 0 )
{
//add new parts
if ( !newGeometries.isEmpty() )
feat.geometry()->convertToMultiType();

for ( int i = 0; i < newGeometries.size(); ++i )
{
addPartRet = feat.geometry()->addPart( newGeometries.at( i ) );

0 comments on commit 5de9444

Please sign in to comment.