Skip to content
Permalink
Browse files

Merge pull request #41532 from signedav/fix_virtual_request_crash

Fix crash on featurerequest on virtual layer
  • Loading branch information
signedav authored and github-actions committed Feb 16, 2021
1 parent 56160e4 commit 415fb513cceff1e83c4e40da9971930373a8e01e
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/virtual/qgsvirtuallayerfeatureiterator.cpp
@@ -118,8 +118,8 @@ QgsVirtualLayerFeatureIterator::QgsVirtualLayerFeatureIterator( QgsVirtualLayerF
else // never return a feature if the id is negative
offset = QStringLiteral( " LIMIT 0" );
}
else if ( !mFilterRect.isNull() &&
mRequest.flags() & QgsFeatureRequest::ExactIntersect )
if ( !mFilterRect.isNull() &&
mRequest.flags() & QgsFeatureRequest::ExactIntersect )
{
// if an exact intersection is requested, prepare the geometry to intersect
QgsGeometry rectGeom = QgsGeometry::fromRect( mFilterRect );

0 comments on commit 415fb51

Please sign in to comment.