Skip to content

Commit 9a26650

Browse files
committedAug 13, 2012
Fix crash if undoing / redoing scale bar unit changes
1 parent 18f2c43 commit 9a26650

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/app/composer/qgscomposerscalebarwidget.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,11 @@ void QgsComposerScaleBarWidget::setGuiElements()
182182

183183
//alignment
184184
mAlignmentComboBox->setCurrentIndex(( int )( mComposerScaleBar->alignment() ) );
185-
blockMemberSignals( false );
186185

187186
//units
188187
mUnitsComboBox->setCurrentIndex( mUnitsComboBox->findData(( int )mComposerScaleBar->units() ) );
188+
189+
blockMemberSignals( false );
189190
}
190191

191192
//slots
@@ -420,6 +421,7 @@ void QgsComposerScaleBarWidget::on_mUnitsComboBox_currentIndexChanged( int index
420421
{
421422
return;
422423
}
424+
423425
mComposerScaleBar->beginCommand( tr( "Scalebar unit changed" ) );
424426
mComposerScaleBar->setUnits(( QgsComposerScaleBar::ScaleBarUnits )unitData.toInt() );
425427
mComposerScaleBar->update();

0 commit comments

Comments
 (0)
Please sign in to comment.