Skip to content
Permalink
Browse files
Fix for not resetting numberOf(left)Segments when switching scalebar …
…unit
  • Loading branch information
rduivenvoorde authored and nyalldawson committed Aug 17, 2021
1 parent f8317f6 commit 25b43f576de235b5b3c78ee353929083abf407d3
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/gui/layout/qgslayoutscalebarwidget.cpp
@@ -650,6 +650,8 @@ void QgsLayoutScaleBarWidget::mUnitsComboBox_currentIndexChanged( int index )
mScalebar->applyDefaultSize( static_cast< QgsUnitTypes::DistanceUnit >( unitData.toInt() ) );
mScalebar->update();

mNumberOfSegmentsSpinBox->setValue( mScalebar->numberOfSegments() );
mSegmentsLeftSpinBox->setValue( mScalebar->numberOfSegmentsLeft() );
mUnitLabelLineEdit->setText( mScalebar->unitLabel() );
mSegmentSizeSpinBox->setValue( mScalebar->unitsPerSegment() );
mMapUnitsPerBarUnitSpinBox->setValue( mScalebar->mapUnitsPerScaleBarUnit() );

0 comments on commit 25b43f5

Please sign in to comment.