Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix for #8705, duplication of composer should inherit custom paper size
  • Loading branch information
dakcarto committed Sep 28, 2013
1 parent b2396f6 commit 121d76e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/composer/qgscompositionwidget.cpp
Expand Up @@ -369,6 +369,7 @@ void QgsCompositionWidget::displayCompositionWidthHeight()
setSize( mPaperHeightDoubleSpinBox, paperHeight );

//set orientation
mPaperOrientationComboBox->blockSignals( true );
if ( paperWidth > paperHeight )
{
mPaperOrientationComboBox->setCurrentIndex( mPaperOrientationComboBox->findText( tr( "Landscape" ) ) );
Expand All @@ -377,6 +378,7 @@ void QgsCompositionWidget::displayCompositionWidthHeight()
{
mPaperOrientationComboBox->setCurrentIndex( mPaperOrientationComboBox->findText( tr( "Portrait" ) ) );
}
mPaperOrientationComboBox->blockSignals( false );

//set paper name
bool found = false;
Expand Down

0 comments on commit 121d76e

Please sign in to comment.