mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-09 00:35:20 -05:00
Use nondeprecated api
This commit is contained in:
parent
4ee24bbb64
commit
6685471596
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user