Use nondeprecated api

This commit is contained in:
Matthias Kuhn 2019-11-02 16:51:25 +01:00
parent 4ee24bbb64
commit 6685471596

View File

@ -4384,8 +4384,8 @@ QVector<double> QgsLayoutDesignerDialog::predefinedScales() const
{
QgsProject *project = mMasterLayout->layoutProject();
// first look at project's scales
QVector< double > projectMapScales = project->mapScales();
bool hasProjectScales( project->useProjectScales() );
QVector< double > projectMapScales = project->viewSettings()->mapScales();
bool hasProjectScales( project->viewSettings()->useProjectScales() );
if ( !hasProjectScales || projectMapScales.isEmpty() )
{
// default to global map tool scales