Fix test for request size vs cache size

On behalf of Faunalia, sponsored by ENEL
This commit is contained in:
Nyall Dawson 2016-08-10 12:25:57 +10:00
parent 8908eea43b
commit 38a4aac971

View File

@ -174,7 +174,7 @@ QgsVectorLayer* QgsVectorLayerCache::layer()
void QgsVectorLayerCache::requestCompleted( const QgsFeatureRequest& featureRequest, const QgsFeatureIds& fids )
{
// If a request is too large for the cache don't notify to prevent from indexing incomplete requests
if ( fids.count() < mCache.size() )
if ( fids.count() <= mCache.size() )
{
Q_FOREACH ( QgsAbstractCacheIndex* idx, mCacheIndices )
{