Skip to content
Permalink
Browse files

Don't crash when iterating cached features

  • Loading branch information
m-kuhn committed Nov 25, 2013
1 parent 8e73a58 commit b756fe73c0ad1a60dd4d55fa5cefc3384e4e33bd
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/core/qgscachedfeatureiterator.cpp
@@ -57,9 +57,10 @@ bool QgsCachedFeatureIterator::fetchFeature( QgsFeature& f )
if ( mClosed )
return false;

while ( mFeatureIdIterator++ != mFeatureIds.constEnd() )
while ( mFeatureIdIterator != mFeatureIds.constEnd() )
{
f = QgsFeature( *mVectorLayerCache->mCache[*mFeatureIdIterator]->feature() );
++mFeatureIdIterator;
if ( mRequest.acceptFeature( f ) )
return true;
}

0 comments on commit b756fe7

Please sign in to comment.
You can’t perform that action at this time.