Skip to content
Permalink
Browse files

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

  • Loading branch information
lbartoletti authored and nyalldawson committed Feb 20, 2019
1 parent f071030 commit 50c9b2394e5b62a2421b0241799577f011a6de32
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 50c9b23

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