mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Don't crash when iterating cached features
This commit is contained in:
parent
8e73a58750
commit
b756fe73c0
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user