Skip to content

Commit

Permalink
homogenize allowed tolerance values (fix #16336)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Apr 30, 2017
1 parent a944f7c commit 0c621ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgssnappingwidget.cpp
Expand Up @@ -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 );
Expand Down Expand Up @@ -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 );
Expand Down Expand Up @@ -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() );
Expand Down

0 comments on commit 0c621ea

Please sign in to comment.