Skip to content
Permalink
Browse files

Fix tolerance handling with snapped points

  • Loading branch information
nyalldawson committed Mar 11, 2021
1 parent 594125a commit 4d9646b363846d61325fcfc3159e29e27da6c366
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgsmaptoolcapture.cpp
@@ -390,7 +390,7 @@ void QgsMapToolCapture::cadCanvasMoveEvent( QgsMapMouseEvent *e )
QgsSettings settings;
const int tolerance = settings.value( QStringLiteral( "/qgis/digitizing/stream_tolerance" ), 2 ).toInt();
QgsPoint prevPoint = mCaptureCurve.curveAt( mCaptureCurve.nCurves() - 1 )->endPoint();
if ( QgsPointXY( toCanvasCoordinates( toMapCoordinates( mCanvas->currentLayer(), prevPoint ) ) ).distance( e->pos() ) < tolerance )
if ( QgsPointXY( toCanvasCoordinates( toMapCoordinates( mCanvas->currentLayer(), prevPoint ) ) ).distance( toCanvasCoordinates( point ) ) < tolerance )
return;
}

0 comments on commit 4d9646b

Please sign in to comment.