Skip to content

Commit

Permalink
Fix loading composer item frame thickness (fix #8866)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 17, 2013
1 parent 2b74e89 commit 491231e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app/composer/qgscomposeritemwidget.cpp
Expand Up @@ -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();
Expand Down Expand Up @@ -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" ) );
Expand All @@ -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 );
Expand Down

0 comments on commit 491231e

Please sign in to comment.