Skip to content

Commit ba589a7

Browse files
committedApr 15, 2023
Fix new profile map scales
1 parent 72d56eb commit ba589a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/settings/qgssettingsregistrycore.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ void QgsSettingsRegistryCore::migrateOldSettings()
151151
pal::Pal::settingsRenderingLabelCandidatesLimitPolygons->copyValueFromKey( QStringLiteral( "core/rendering/label_candidates_limit_polygons" ), true );
152152

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

157157

0 commit comments

Comments
 (0)
Please sign in to comment.