Fix loading composer item frame thickness (fix #8866)

This commit is contained in:
nyalldawson 2013-10-17 21:36:28 +11:00
parent 2b74e89953
commit 491231e600

View File

@ -78,9 +78,8 @@ void QgsComposerItemWidget::on_mFrameColorButton_colorChanged( const QColor& new
return;
}
mItem->beginCommand( tr( "Frame color changed" ) );
QPen thePen;
QPen thePen = mItem->pen();
thePen.setColor( newFrameColor );
thePen.setWidthF( mOutlineWidthSpinBox->value() );
mItem->setPen( thePen );
mItem->update();
@ -332,6 +331,8 @@ void QgsComposerItemWidget::setValuesForGuiElements()
mBlendModeCombo->blockSignals( true );
mTransparencySlider->blockSignals( true );
mTransparencySpnBx->blockSignals( true );
mFrameColorButton->blockSignals( true );
mBackgroundColorButton->blockSignals( true );
mBackgroundColorButton->setColor( mItem->brush().color() );
mBackgroundColorButton->setColorDialogTitle( tr( "Select background color" ) );
@ -348,6 +349,8 @@ void QgsComposerItemWidget::setValuesForGuiElements()
mTransparencySlider->setValue( mItem->transparency() );
mTransparencySpnBx->setValue( mItem->transparency() );
mBackgroundColorButton->blockSignals( false );
mFrameColorButton->blockSignals( false );
mOutlineWidthSpinBox->blockSignals( false );
mFrameGroupBox->blockSignals( false );
mBackgroundGroupBox->blockSignals( false );