Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't crash when iterating cached features
  • Loading branch information
m-kuhn committed Nov 25, 2013
1 parent 8e73a58 commit b756fe7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/qgscachedfeatureiterator.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit b756fe7

Please sign in to comment.