Skip to content
Permalink
Browse files

Fix setting custom page size

  • Loading branch information
nyalldawson committed Sep 1, 2017
1 parent d5552cd commit 3bc9de51fd648f7f693daa209006166323871959
Showing with 0 additions and 4 deletions.
  1. +0 −4 src/app/layout/qgslayoutpagepropertieswidget.cpp
@@ -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 );
@@ -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 );

0 comments on commit 3bc9de5

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