Skip to content

Commit

Permalink
fix scale list
Browse files Browse the repository at this point in the history
fixes #52383
  • Loading branch information
3nids authored and nyalldawson committed Mar 28, 2023
1 parent 92153a5 commit d516eeb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gui/qgsscalecombobox.cpp
Expand Up @@ -39,16 +39,16 @@ QgsScaleComboBox::QgsScaleComboBox( QWidget *parent )

void QgsScaleComboBox::updateScales( const QStringList &scales )
{
QStringList myScalesList;
QStringList myScalesList = scales;
const QString oldScale = currentText();

if ( scales.isEmpty() )
{
const QStringList scales = QgsSettingsRegistryCore::settingsMapScales->value();
myScalesList = QgsSettingsRegistryCore::settingsMapScales->value();
}
else
{
QStringList::const_iterator scaleIt = scales.constBegin();
QStringList::const_iterator scaleIt = myScalesList.constBegin();
for ( ; scaleIt != scales.constEnd(); ++scaleIt )
{
myScalesList.append( *scaleIt );
Expand Down

0 comments on commit d516eeb

Please sign in to comment.