Skip to content
Permalink
Browse files
Avoid reseting of pen width if changing stroke color
  • Loading branch information
mhugent committed Jan 22, 2013
1 parent 1631be4 commit f7f0b2dff5f98f6c013775aefd43b773e3c24214
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/app/composer/qgscomposerscalebarwidget.cpp
@@ -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();

0 comments on commit f7f0b2d

Please sign in to comment.