Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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[bot] committed Feb 16, 2021
1 parent 56160e4 commit 415fb51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/virtual/qgsvirtuallayerfeatureiterator.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit 415fb51

Please sign in to comment.