Skip to content
Permalink
Browse files
homogenize allowed tolerance values (fix #16336)
  • Loading branch information
alexbruy committed Apr 30, 2017
1 parent a944f7c commit 0c621eac0f444c1b0ad81a0fa3183248c9310a03
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgssnappingwidget.cpp
@@ -110,6 +110,8 @@ QgsSnappingWidget::QgsSnappingWidget( QgsProject *project, QgsMapCanvas *canvas,

// tolerance
mToleranceSpinBox = new QDoubleSpinBox();
mToleranceSpinBox->setDecimals( 5 );
mToleranceSpinBox->setMaximum( 99999999.990000 );
mToleranceSpinBox->setToolTip( tr( "Snapping Tolerance in Defined Units" ) );
mToleranceSpinBox->setObjectName( QStringLiteral( "SnappingToleranceSpinBox" ) );
connect( mToleranceSpinBox, static_cast < void ( QDoubleSpinBox::* )( double ) > ( &QDoubleSpinBox::valueChanged ), this, &QgsSnappingWidget::changeTolerance );
@@ -138,7 +140,6 @@ QgsSnappingWidget::QgsSnappingWidget( QgsProject *project, QgsMapCanvas *canvas,
mIntersectionSnappingAction->setObjectName( QStringLiteral( "IntersectionSnappingAction" ) );
connect( mIntersectionSnappingAction, &QAction::toggled, this, &QgsSnappingWidget::enableIntersectionSnapping );


// snapping on intersection button
mEnableTracingAction = new QAction( tr( "enable tracing" ), this );
mEnableTracingAction->setCheckable( true );
@@ -225,7 +226,6 @@ QgsSnappingWidget::QgsSnappingWidget( QgsProject *project, QgsMapCanvas *canvas,
connect( project, &QgsProject::topologicalEditingChanged, this, &QgsSnappingWidget::projectTopologicalEditingChanged );
connect( mCanvas, &QgsMapCanvas::destinationCrsChanged, this, &QgsSnappingWidget::updateToleranceDecimals );


// Slightly modify the config so the settings changed code doesn't early exit
mConfig = project->snappingConfig();
mConfig.setEnabled( !mConfig.enabled() );

0 comments on commit 0c621ea

Please sign in to comment.