File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -182,10 +182,11 @@ void QgsComposerScaleBarWidget::setGuiElements()
182
182
183
183
// alignment
184
184
mAlignmentComboBox ->setCurrentIndex (( int )( mComposerScaleBar ->alignment () ) );
185
- blockMemberSignals ( false );
186
185
187
186
// units
188
187
mUnitsComboBox ->setCurrentIndex ( mUnitsComboBox ->findData (( int )mComposerScaleBar ->units () ) );
188
+
189
+ blockMemberSignals ( false );
189
190
}
190
191
191
192
// slots
@@ -420,6 +421,7 @@ void QgsComposerScaleBarWidget::on_mUnitsComboBox_currentIndexChanged( int index
420
421
{
421
422
return ;
422
423
}
424
+
423
425
mComposerScaleBar ->beginCommand ( tr ( " Scalebar unit changed" ) );
424
426
mComposerScaleBar ->setUnits (( QgsComposerScaleBar::ScaleBarUnits )unitData.toInt () );
425
427
mComposerScaleBar ->update ();
You can’t perform that action at this time.
0 commit comments