Skip to content
Permalink
Browse files

[BUGFIX] fixes #20829 Snapping options in meters rounded to integers

(cherry picked from commit 50c9b23)
  • Loading branch information
lbartoletti authored and nyalldawson committed Feb 13, 2019
1 parent e098b9a commit d3eaa9b8874613e8951e268627345aff5fb19f6a
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/app/qgssnappingwidget.cpp
@@ -350,14 +350,14 @@ void QgsSnappingWidget::projectSnapSettingsChanged()
mTypeButton->setDefaultAction( mSegmentAction );
}

if ( mToleranceSpinBox->value() != config.tolerance() )
if ( static_cast<QgsTolerance::UnitType>( mUnitsComboBox->currentData().toInt() ) != config.units() )
{
mToleranceSpinBox->setValue( config.tolerance() );
mUnitsComboBox->setCurrentIndex( mUnitsComboBox->findData( config.units() ) );
}

if ( static_cast<QgsTolerance::UnitType>( mUnitsComboBox->currentData().toInt() ) != config.units() )
if ( mToleranceSpinBox->value() != config.tolerance() )
{
mUnitsComboBox->setCurrentIndex( mUnitsComboBox->findData( config.units() ) );
mToleranceSpinBox->setValue( config.tolerance() );
}

if ( config.intersectionSnapping() != mIntersectionSnappingAction->isChecked() )

0 comments on commit d3eaa9b

Please sign in to comment.
You can’t perform that action at this time.