Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
nodetool: use exact intersect when picking features (fixes #15294)
(cherry picked from commit 6b27994)
  • Loading branch information
jef-n committed Sep 29, 2016
1 parent 6ad5abe commit ae76aa6
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 ae76aa6

Please sign in to comment.