Skip to content

Commit 491231e

Browse files
committed
Fix loading composer item frame thickness (fix #8866)
1 parent 2b74e89 commit 491231e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/app/composer/qgscomposeritemwidget.cpp

+5-2
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,8 @@ void QgsComposerItemWidget::on_mFrameColorButton_colorChanged( const QColor& new
7878
return;
7979
}
8080
mItem->beginCommand( tr( "Frame color changed" ) );
81-
QPen thePen;
81+
QPen thePen = mItem->pen();
8282
thePen.setColor( newFrameColor );
83-
thePen.setWidthF( mOutlineWidthSpinBox->value() );
8483

8584
mItem->setPen( thePen );
8685
mItem->update();
@@ -332,6 +331,8 @@ void QgsComposerItemWidget::setValuesForGuiElements()
332331
mBlendModeCombo->blockSignals( true );
333332
mTransparencySlider->blockSignals( true );
334333
mTransparencySpnBx->blockSignals( true );
334+
mFrameColorButton->blockSignals( true );
335+
mBackgroundColorButton->blockSignals( true );
335336

336337
mBackgroundColorButton->setColor( mItem->brush().color() );
337338
mBackgroundColorButton->setColorDialogTitle( tr( "Select background color" ) );
@@ -348,6 +349,8 @@ void QgsComposerItemWidget::setValuesForGuiElements()
348349
mTransparencySlider->setValue( mItem->transparency() );
349350
mTransparencySpnBx->setValue( mItem->transparency() );
350351

352+
mBackgroundColorButton->blockSignals( false );
353+
mFrameColorButton->blockSignals( false );
351354
mOutlineWidthSpinBox->blockSignals( false );
352355
mFrameGroupBox->blockSignals( false );
353356
mBackgroundGroupBox->blockSignals( false );

0 commit comments

Comments
 (0)