Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[composer] Fix scalebar widgets not updated when changing units (fix #…
…13572)

(cherry-picked from dc6c12b)
  • Loading branch information
nyalldawson committed Nov 18, 2015
1 parent 96ba590 commit 6320dcf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/composer/qgscomposerscalebarwidget.cpp
Expand Up @@ -596,6 +596,11 @@ void QgsComposerScaleBarWidget::on_mUnitsComboBox_currentIndexChanged( int index
}

mComposerScaleBar->update();

mUnitLabelLineEdit->setText( mComposerScaleBar->unitLabeling() );
mSegmentSizeSpinBox->setValue( mComposerScaleBar->numUnitsPerSegment() );
mMapUnitsPerBarUnitSpinBox->setValue( mComposerScaleBar->numMapUnitsPerScaleBarUnit() );

connectUpdateSignal();
mComposerScaleBar->endCommand();
}
Expand Down

0 comments on commit 6320dcf

Please sign in to comment.