Skip to content

Commit

Permalink
Fix setting custom page size
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 4, 2017
1 parent d5552cd commit 3bc9de5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/app/layout/qgslayoutpagepropertieswidget.cpp
Expand Up @@ -147,8 +147,6 @@ void QgsLayoutPagePropertiesWidget::showCurrentPageSize()
if ( !pageSize.isEmpty() )
{
mPageSizeComboBox->setCurrentIndex( mPageSizeComboBox->findData( pageSize ) );
mWidthSpin->setEnabled( false );
mHeightSpin->setEnabled( false );
mLockAspectRatio->setEnabled( false );
mLockAspectRatio->setLocked( false );
mSizeUnitsComboBox->setEnabled( false );
Expand All @@ -158,8 +156,6 @@ void QgsLayoutPagePropertiesWidget::showCurrentPageSize()
{
// custom
mPageSizeComboBox->setCurrentIndex( mPageSizeComboBox->count() - 1 );
mWidthSpin->setEnabled( true );
mHeightSpin->setEnabled( true );
mLockAspectRatio->setEnabled( true );
mSizeUnitsComboBox->setEnabled( true );
mPageOrientationComboBox->setEnabled( false );
Expand Down

0 comments on commit 3bc9de5

Please sign in to comment.