mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
nodetool: use exact intersect when picking features (fixes #15294)
This commit is contained in:
parent
949241d3ac
commit
6b2799414a
@ -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 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user