Skip to content

Commit

Permalink
Break on first error
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso authored and nyalldawson committed Jun 19, 2020
1 parent 7fa6f38 commit e0514de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/providers/memory/qgsmemoryprovider.cpp
Expand Up @@ -445,6 +445,10 @@ bool QgsMemoryProvider::addFeatures( QgsFeatureList &flist, Flags flags )
// Skip the feature if there is at least one conversion error
if ( conversionError )
{
if ( flags.testFlag( QgsFeatureSink::Flag::RollBackOnErrors ) )
{
break;
}
continue;
}

Expand Down

0 comments on commit e0514de

Please sign in to comment.