Skip to content

Commit

Permalink
use default snapping options in georeferencer
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids authored Jan 17, 2025
1 parent 48f9d5f commit 2c80438
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/georeferencer/qgsgeorefmainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 2c80438

Please sign in to comment.