Skip to content

Commit

Permalink
Fix for crash on scale combobox popup
Browse files Browse the repository at this point in the history
- Fixes undocumented crash on clicking scale combobox, when it shows 'Invalid scale' (also in 1.8.0)
- 'Invalid scale' shows up on initial launch, but apparently not on New Project
  • Loading branch information
dakcarto committed Jul 29, 2012
1 parent c9d8224 commit f457ece
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/qgsscalecombobox.cpp
Expand Up @@ -68,6 +68,10 @@ void QgsScaleComboBox::showPopup()
{
QComboBox::showPopup();

if ( !currentText().contains( ':' ) )
{
return;
}
QStringList parts = currentText().split( ':' );
bool ok;
int idx = 0;
Expand Down

0 comments on commit f457ece

Please sign in to comment.