[afs] Fix identify tool sometimes just uses a bounding box check instead of exact intersection

This commit is contained in:
Nyall Dawson 2018-11-13 11:11:45 +10:00
parent fc5f707b0f
commit bb248989b3

View File

@ -133,9 +133,12 @@ bool QgsAfsFeatureIterator::fetchFeature( QgsFeature &f )
mDeferredFeaturesInFilterRectCheck = false;
// discard the filter rect - we know that the features in mRemainingFeatureIds are guaranteed
// to be intersecting the rect, so avoid any extra unnecessary checks
mFilterRect = QgsRectangle();
if ( !( mRequest.flags() & QgsFeatureRequest::ExactIntersect ) )
{
// discard the filter rect - we know that the features in mRemainingFeatureIds are guaranteed
// to be intersecting the rect, so avoid any extra unnecessary checks
mFilterRect = QgsRectangle();
}
}
if ( !mFeatureIdList.empty() && mRemainingFeatureIds.empty() )