From 2c80438d31d49b7a7e658785dacd01aa00bf91c6 Mon Sep 17 00:00:00 2001 From: Denis Rouzaud Date: Fri, 17 Jan 2025 08:48:11 +0100 Subject: [PATCH 1/2] 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 ); From 1f530b6e19d8899d15b313adbdcbe4065a0c1db7 Mon Sep 17 00:00:00 2001 From: Denis Rouzaud Date: Fri, 17 Jan 2025 09:34:03 +0100 Subject: [PATCH 2/2] Update qgsgeorefmainwindow.cpp --- src/app/georeferencer/qgsgeorefmainwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/georeferencer/qgsgeorefmainwindow.cpp b/src/app/georeferencer/qgsgeorefmainwindow.cpp index f0c28e254c15..a03fd0d0ec78 100644 --- a/src/app/georeferencer/qgsgeorefmainwindow.cpp +++ b/src/app/georeferencer/qgsgeorefmainwindow.cpp @@ -37,6 +37,7 @@ #include "qgsapplication.h" #include "qgsgui.h" #include "qgisapp.h" +#include "qgssettingsregistrycore.h" #include "qgslayoutitemlabel.h" #include "qgslayoutitemmap.h"