Skip to content
Permalink
Browse files

Properly handle unselected features with snapping

  • Loading branch information
uclaros authored and nyalldawson committed Mar 31, 2021
1 parent 25b710b commit 669db3870362c4df8654ce3db0288ed069415a01
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgsmaptoolrotatefeature.cpp
@@ -239,7 +239,7 @@ void QgsMapToolRotateFeature::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
return;
}

QgsPointXY layerCoords = toLayerCoordinates( vlayer, e->pos() );
QgsPointXY layerCoords = toLayerCoordinates( vlayer, e->mapPoint() );
double searchRadius = QgsTolerance::vertexSearchRadius( mCanvas->currentLayer(), mCanvas->mapSettings() );
QgsRectangle selectRect( layerCoords.x() - searchRadius, layerCoords.y() - searchRadius,
layerCoords.x() + searchRadius, layerCoords.y() + searchRadius );

0 comments on commit 669db38

Please sign in to comment.