Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Avoid reseting of pen width if changing stroke color
  • Loading branch information
mhugent committed Jan 22, 2013
1 parent 1631be4 commit f7f0b2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/composer/qgscomposerscalebarwidget.cpp
Expand Up @@ -361,7 +361,8 @@ void QgsComposerScaleBarWidget::on_mStrokeColorPushButton_clicked()

mComposerScaleBar->beginCommand( tr( "Scalebar stroke color changed" ) );
disconnectUpdateSignal();
QPen newPen( newColor );
QPen newPen = mComposerScaleBar->pen();
newPen.setColor( newColor );
mComposerScaleBar->setPen( newPen );
mComposerScaleBar->update();
connectUpdateSignal();
Expand Down

0 comments on commit f7f0b2d

Please sign in to comment.