Skip to content

Commit

Permalink
Update qgsscalecombobox.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids authored and nyalldawson committed Mar 28, 2023
1 parent 15c4580 commit 606449a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgsscalecombobox.cpp
Expand Up @@ -39,7 +39,7 @@ QgsScaleComboBox::QgsScaleComboBox( QWidget *parent )

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

if ( scales.isEmpty() )
Expand All @@ -48,7 +48,7 @@ void QgsScaleComboBox::updateScales( const QStringList &scales )
}
else
{
QStringList::const_iterator scaleIt = myScalesList.constBegin();
QStringList::const_iterator scaleIt = scales.constBegin();
for ( ; scaleIt != scales.constEnd(); ++scaleIt )
{
myScalesList.append( *scaleIt );
Expand Down

0 comments on commit 606449a

Please sign in to comment.