File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -78,9 +78,8 @@ void QgsComposerItemWidget::on_mFrameColorButton_colorChanged( const QColor& new
78
78
return ;
79
79
}
80
80
mItem ->beginCommand ( tr ( " Frame color changed" ) );
81
- QPen thePen;
81
+ QPen thePen = mItem -> pen () ;
82
82
thePen.setColor ( newFrameColor );
83
- thePen.setWidthF ( mOutlineWidthSpinBox ->value () );
84
83
85
84
mItem ->setPen ( thePen );
86
85
mItem ->update ();
@@ -332,6 +331,8 @@ void QgsComposerItemWidget::setValuesForGuiElements()
332
331
mBlendModeCombo ->blockSignals ( true );
333
332
mTransparencySlider ->blockSignals ( true );
334
333
mTransparencySpnBx ->blockSignals ( true );
334
+ mFrameColorButton ->blockSignals ( true );
335
+ mBackgroundColorButton ->blockSignals ( true );
335
336
336
337
mBackgroundColorButton ->setColor ( mItem ->brush ().color () );
337
338
mBackgroundColorButton ->setColorDialogTitle ( tr ( " Select background color" ) );
@@ -348,6 +349,8 @@ void QgsComposerItemWidget::setValuesForGuiElements()
348
349
mTransparencySlider ->setValue ( mItem ->transparency () );
349
350
mTransparencySpnBx ->setValue ( mItem ->transparency () );
350
351
352
+ mBackgroundColorButton ->blockSignals ( false );
353
+ mFrameColorButton ->blockSignals ( false );
351
354
mOutlineWidthSpinBox ->blockSignals ( false );
352
355
mFrameGroupBox ->blockSignals ( false );
353
356
mBackgroundGroupBox ->blockSignals ( false );
You can’t perform that action at this time.
0 commit comments