Skip to content
Permalink
Browse files

fixes crash on doing a feature request with filterType FilterFid and …

…the falag ExactInteresect since the mRectEngine is null on filterType FilterFid
  • Loading branch information
signedav committed Feb 12, 2021
1 parent 4137287 commit e9623a4591289ae4e2c197dff8876be6433d6842
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/virtual/qgsvirtuallayerfeatureiterator.cpp
@@ -327,7 +327,7 @@ bool QgsVirtualLayerFeatureIterator::fetchFeature( QgsFeature &feature )

// if the FilterRect has not been applied on the query
// apply it here by skipping features until they intersect
if ( mSource->mDefinition.uid().isNull() && feature.hasGeometry() && mSource->mDefinition.hasDefinedGeometry() && !mFilterRect.isNull() )
if ( mSource->mDefinition.uid().isNull() && mRequest.filterType() != QgsFeatureRequest::FilterFid && feature.hasGeometry() && mSource->mDefinition.hasDefinedGeometry() && !mFilterRect.isNull() )
{
if ( mRequest.flags() & QgsFeatureRequest::ExactIntersect )
{

0 comments on commit e9623a4

Please sign in to comment.