Skip to content

Commit 121d76e

Browse files
committedSep 28, 2013
Fix for #8705, duplication of composer should inherit custom paper size
1 parent b2396f6 commit 121d76e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/app/composer/qgscompositionwidget.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ void QgsCompositionWidget::displayCompositionWidthHeight()
369369
setSize( mPaperHeightDoubleSpinBox, paperHeight );
370370

371371
//set orientation
372+
mPaperOrientationComboBox->blockSignals( true );
372373
if ( paperWidth > paperHeight )
373374
{
374375
mPaperOrientationComboBox->setCurrentIndex( mPaperOrientationComboBox->findText( tr( "Landscape" ) ) );
@@ -377,6 +378,7 @@ void QgsCompositionWidget::displayCompositionWidthHeight()
377378
{
378379
mPaperOrientationComboBox->setCurrentIndex( mPaperOrientationComboBox->findText( tr( "Portrait" ) ) );
379380
}
381+
mPaperOrientationComboBox->blockSignals( false );
380382

381383
//set paper name
382384
bool found = false;

0 commit comments

Comments
 (0)
Please sign in to comment.