Skip to content

Commit

Permalink
nodetool: use exact intersect when picking features (fixes #15294)
Browse files Browse the repository at this point in the history
(cherry picked from commit 6b27994)
  • Loading branch information
jef-n committed Sep 29, 2016
1 parent 98b5a10 commit 30580ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/nodetool/qgsmaptoolnodetool.cpp
Expand Up @@ -201,6 +201,7 @@ QgsFeature QgsMapToolNodeTool::getFeatureAtPoint( QgsMapMouseEvent* e )

QgsFeatureRequest request;
request.setFilterRect( QgsRectangle( e->mapPoint().x(), e->mapPoint().y(), e->mapPoint().x(), e->mapPoint().y() ) );
request.setFlags( QgsFeatureRequest::ExactIntersect );
QgsFeatureIterator features = vlayer->getFeatures( request );
features.nextFeature( feature );

Expand Down

0 comments on commit 30580ed

Please sign in to comment.