Skip to content

Commit 0d6c2f0

Browse files
committed
Fix test for request size vs cache size
On behalf of Faunalia, sponsored by ENEL (cherry-picked from 38a4aac)
1 parent 9c64ad2 commit 0d6c2f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/qgsvectorlayercache.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ QgsVectorLayer* QgsVectorLayerCache::layer()
174174
void QgsVectorLayerCache::requestCompleted( const QgsFeatureRequest& featureRequest, const QgsFeatureIds& fids )
175175
{
176176
// If a request is too large for the cache don't notify to prevent from indexing incomplete requests
177-
if ( fids.count() < mCache.size() )
177+
if ( fids.count() <= mCache.size() )
178178
{
179179
Q_FOREACH ( QgsAbstractCacheIndex* idx, mCacheIndices )
180180
{

0 commit comments

Comments
 (0)