Navigation Menu

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 nyalldawson committed Oct 24, 2021
1 parent 496bd6f commit 6ba0611
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 6ba0611

Please sign in to comment.