Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Cleaner loop
(cherry picked from commit 6527d59)
  • Loading branch information
nyalldawson committed Jul 23, 2021
1 parent c13c5de commit e9a1a9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/vector/qgsvectorlayerfeatureiterator.cpp
Expand Up @@ -537,9 +537,9 @@ bool QgsVectorLayerFeatureIterator::isValid() const

bool QgsVectorLayerFeatureIterator::fetchNextAddedFeature( QgsFeature &f )
{
while ( mFetchAddedFeaturesIt != mSource->mAddedFeatures.constBegin() &&
mFetchAddedFeaturesIt-- != mSource->mAddedFeatures.constBegin() )
while ( mFetchAddedFeaturesIt != mSource->mAddedFeatures.constBegin() )
{
--mFetchAddedFeaturesIt;
QgsFeatureId fid = mFetchAddedFeaturesIt->id();

if ( mFetchConsidered.contains( fid ) )
Expand Down

0 comments on commit e9a1a9b

Please sign in to comment.