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
  • Loading branch information
jef-n committed Sep 29, 2016
1 parent 949241d commit 6b27994
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/nodetool/qgsmaptoolnodetool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,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 6b27994

Please sign in to comment.