Skip to content

Commit

Permalink
Fix split parts tool only leaves one of the newly created parts (fix #…
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 13, 2015
1 parent e193c7c commit 5de9444
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/qgsvectorlayereditutils.cpp
Expand Up @@ -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 ) );
Expand Down

0 comments on commit 5de9444

Please sign in to comment.