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 nyalldawson committed Feb 17, 2021
1 parent 56160e4 commit 8f3eeb3d47e5d7bbf77ded8b667d72052c648a33
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 8f3eeb3

Please sign in to comment.