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 committed Feb 15, 2021
2 parents 93910ea + 2942bc3 commit c05ebedc9f239675fd88d9a28d4ad766d0cb5a26
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 c05ebed

Please sign in to comment.