Skip to content
Permalink
Browse files

Fix loading composer item frame thickness (fix #8866)

  • Loading branch information
nyalldawson committed Oct 17, 2013
1 parent 2b74e89 commit 491231e600915110d12216781d2f38018c82847d
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/app/composer/qgscomposeritemwidget.cpp
@@ -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 );

0 comments on commit 491231e

Please sign in to comment.
You can’t perform that action at this time.