Skip to content

Commit

Permalink
Use distanceWithin in QgsFeatureRequest::accept
Browse files Browse the repository at this point in the history
  • Loading branch information
strk authored and github-actions[bot] committed Oct 24, 2021
1 parent e0607da commit 243bede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsfeaturerequest.cpp
Expand Up @@ -357,7 +357,7 @@ bool QgsFeatureRequest::acceptFeature( const QgsFeature &feature )
if ( !feature.hasGeometry()
|| !mReferenceGeometryEngine
|| !feature.geometry().boundingBoxIntersects( mFilterRect )
|| mReferenceGeometryEngine->distance( feature.geometry().constGet() ) > mDistanceWithin
|| !mReferenceGeometryEngine->distanceWithin( feature.geometry().constGet(), mDistanceWithin )
)
return false;
break;
Expand Down

0 comments on commit 243bede

Please sign in to comment.