Skip to content
Permalink
Browse files
Cleaner loop
(cherry picked from commit 6527d59)
  • Loading branch information
nyalldawson committed Aug 17, 2021
1 parent 79e247b commit f26118e757e0676819a8bd4f994690256d8ea80a
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgsvectorlayerfeatureiterator.cpp
@@ -530,9 +530,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 ) )

0 comments on commit f26118e

Please sign in to comment.