Skip to content

Commit

Permalink
[layouts] Fix reference map can change when opening a layout designer
Browse files Browse the repository at this point in the history
(cherry-picked from 6b5dfce)
  • Loading branch information
nyalldawson committed Mar 15, 2018
1 parent a7c42d2 commit 40626ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/layout/qgslayoutpropertieswidget.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ QgsLayoutPropertiesWidget::QgsLayoutPropertiesWidget( QWidget *parent, QgsLayout
connect( mResizePageButton, &QPushButton::clicked, this, &QgsLayoutPropertiesWidget::resizeToContents ); connect( mResizePageButton, &QPushButton::clicked, this, &QgsLayoutPropertiesWidget::resizeToContents );


connect( mResolutionSpinBox, static_cast < void ( QSpinBox::* )( int ) > ( &QSpinBox::valueChanged ), this, &QgsLayoutPropertiesWidget::dpiChanged ); connect( mResolutionSpinBox, static_cast < void ( QSpinBox::* )( int ) > ( &QSpinBox::valueChanged ), this, &QgsLayoutPropertiesWidget::dpiChanged );
connect( mReferenceMapComboBox, &QgsLayoutItemComboBox::itemChanged, this, &QgsLayoutPropertiesWidget::referenceMapChanged );


mReferenceMapComboBox->setCurrentLayout( mLayout ); mReferenceMapComboBox->setCurrentLayout( mLayout );
mReferenceMapComboBox->setItemType( QgsLayoutItemRegistry::LayoutMap ); mReferenceMapComboBox->setItemType( QgsLayoutItemRegistry::LayoutMap );
connect( mReferenceMapComboBox, &QgsLayoutItemComboBox::itemChanged, this, &QgsLayoutPropertiesWidget::referenceMapChanged );


connect( mLayout, &QgsLayout::changed, this, &QgsLayoutPropertiesWidget::updateGui ); connect( mLayout, &QgsLayout::changed, this, &QgsLayoutPropertiesWidget::updateGui );


Expand Down

0 comments on commit 40626ca

Please sign in to comment.