Skip to content

Commit 6320dcf

Browse files
committed
[composer] Fix scalebar widgets not updated when changing units (fix #13572)
(cherry-picked from dc6c12b)
1 parent 96ba590 commit 6320dcf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/app/composer/qgscomposerscalebarwidget.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,11 @@ void QgsComposerScaleBarWidget::on_mUnitsComboBox_currentIndexChanged( int index
596596
}
597597

598598
mComposerScaleBar->update();
599+
600+
mUnitLabelLineEdit->setText( mComposerScaleBar->unitLabeling() );
601+
mSegmentSizeSpinBox->setValue( mComposerScaleBar->numUnitsPerSegment() );
602+
mMapUnitsPerBarUnitSpinBox->setValue( mComposerScaleBar->numMapUnitsPerScaleBarUnit() );
603+
599604
connectUpdateSignal();
600605
mComposerScaleBar->endCommand();
601606
}

0 commit comments

Comments
 (0)