Skip to content

Commit

Permalink
Merge pull request #41532 from signedav/fix_virtual_request_crash
Browse files Browse the repository at this point in the history
Fix crash on featurerequest on virtual layer
  • Loading branch information
signedav committed Feb 15, 2021
2 parents 93910ea + 2942bc3 commit c05ebed
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 c05ebed

Please sign in to comment.