File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -350,14 +350,14 @@ void QgsSnappingWidget::projectSnapSettingsChanged()
350350 mTypeButton ->setDefaultAction ( mSegmentAction );
351351 }
352352
353- if ( mToleranceSpinBox -> value () != config.tolerance () )
353+ if ( static_cast <QgsTolerance::UnitType>( mUnitsComboBox -> currentData (). toInt () ) != config.units () )
354354 {
355- mToleranceSpinBox -> setValue ( config.tolerance ( ) );
355+ mUnitsComboBox -> setCurrentIndex ( mUnitsComboBox -> findData ( config.units () ) );
356356 }
357357
358- if ( static_cast <QgsTolerance::UnitType>( mUnitsComboBox -> currentData (). toInt () ) != config.units () )
358+ if ( mToleranceSpinBox -> value () != config.tolerance () )
359359 {
360- mUnitsComboBox -> setCurrentIndex ( mUnitsComboBox -> findData ( config.units () ) );
360+ mToleranceSpinBox -> setValue ( config.tolerance ( ) );
361361 }
362362
363363 if ( config.intersectionSnapping () != mIntersectionSnappingAction ->isChecked () )
You can’t perform that action at this time.
0 commit comments