Skip to content

Commit

Permalink
return the proper error code
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Sep 10, 2013
1 parent 3e89c69 commit f361e11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayereditutils.cpp
Expand Up @@ -413,7 +413,7 @@ int QgsVectorLayerEditUtils::splitParts( const QList<QgsPoint>& splitLine, bool
qDeleteAll( newGeometries );
}

if ( numberOfSplittedParts == 0 && selectedIds.size() > 0 )
if ( numberOfSplittedParts == 0 && selectedIds.size() > 0 && returnCode == 0)
{
//There is a selection but no feature has been split.
//Maybe user forgot that only the selected features are split
Expand Down

0 comments on commit f361e11

Please sign in to comment.