Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix new profile map scales
  • Loading branch information
YoannQDQ committed Apr 15, 2023
1 parent 72d56eb commit ba589a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/settings/qgssettingsregistrycore.cpp
Expand Up @@ -151,7 +151,7 @@ void QgsSettingsRegistryCore::migrateOldSettings()
pal::Pal::settingsRenderingLabelCandidatesLimitPolygons->copyValueFromKey( QStringLiteral( "core/rendering/label_candidates_limit_polygons" ), true );

// migrate only one way for map scales
if ( !settingsMapScales->exists() )
if ( !settingsMapScales->exists() && QgsSettings().contains( QStringLiteral( "Map/scales" ) ) )
settingsMapScales->setValue( QgsSettings().value( QStringLiteral( "Map/scales" ) ).toString().split( ',' ) );


Expand Down

0 comments on commit ba589a7

Please sign in to comment.