Skip to content

Commit 6b27994

Browse files
committed
nodetool: use exact intersect when picking features (fixes #15294)
1 parent 949241d commit 6b27994

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/app/nodetool/qgsmaptoolnodetool.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ QgsFeature QgsMapToolNodeTool::getFeatureAtPoint( QgsMapMouseEvent* e )
202202

203203
QgsFeatureRequest request;
204204
request.setFilterRect( QgsRectangle( e->mapPoint().x(), e->mapPoint().y(), e->mapPoint().x(), e->mapPoint().y() ) );
205+
request.setFlags( QgsFeatureRequest::ExactIntersect );
205206
QgsFeatureIterator features = vlayer->getFeatures( request );
206207
features.nextFeature( feature );
207208

0 commit comments

Comments
 (0)