Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add another check before adding empty scale
  • Loading branch information
elpaso authored and github-actions[bot] committed Apr 5, 2023
1 parent cd7e1dc commit a0881c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/options/qgsoptions.cpp
Expand Up @@ -811,7 +811,10 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl, const QList<QgsOpti
const QStringList scalePaths = QgsSettingsRegistryCore::settingsMapScales->value();
for ( const QString &scale : scalePaths )
{
addScaleToScaleList( scale );
if ( ! scale.isEmpty() )
{
addScaleToScaleList( scale );
}
}

connect( mListGlobalScales, &QListWidget::itemChanged, this, &QgsOptions::scaleItemChanged );
Expand Down

0 comments on commit a0881c1

Please sign in to comment.