From 2c80438d31d49b7a7e658785dacd01aa00bf91c6 Mon Sep 17 00:00:00 2001 From: Denis Rouzaud Date: Fri, 17 Jan 2025 08:48:11 +0100 Subject: [PATCH] use default snapping options in georeferencer --- src/app/georeferencer/qgsgeorefmainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/georeferencer/qgsgeorefmainwindow.cpp b/src/app/georeferencer/qgsgeorefmainwindow.cpp index 54abd72dc51d..f0c28e254c15 100644 --- a/src/app/georeferencer/qgsgeorefmainwindow.cpp +++ b/src/app/georeferencer/qgsgeorefmainwindow.cpp @@ -1116,8 +1116,8 @@ void QgsGeoreferencerMainWindow::createMapCanvas() QgsSnappingConfig snappingConfig; snappingConfig.setMode( Qgis::SnappingMode::AllLayers ); snappingConfig.setTypeFlag( settingSnappingTypes->value() ); - snappingConfig.setTolerance( 10 ); - snappingConfig.setUnits( Qgis::MapToolUnit::Pixels ); + snappingConfig.setTolerance( QgsSettingsRegistryCore::settingsDigitizingDefaultSnappingTolerance->value() ); + snappingConfig.setUnits( QgsSettingsRegistryCore::settingsDigitizingDefaultSnappingToleranceUnit->value() ); snappingConfig.setEnabled( settingSnappingEnabled->value() ); mSnappingUtils = new QgsMapCanvasSnappingUtils( mCanvas, this );