Navigation Menu

Skip to content

Commit

Permalink
Fix new profile map scales
Browse files Browse the repository at this point in the history
  • Loading branch information
YoannQDQ authored and github-actions[bot] committed Apr 20, 2023
1 parent ac95195 commit 9c0190e
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 9c0190e

Please sign in to comment.