Skip to content

Commit

Permalink
Add another check before adding empty scale
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso authored and nyalldawson committed Apr 6, 2023
1 parent 7a2fafb commit 7ae70aa
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 7ae70aa

Please sign in to comment.