Skip to content
Permalink
Browse files

Fix for crash on scale combobox popup

- 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 f457ece3eb41916716bf3da0c637b08a7f477175
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/gui/qgsscalecombobox.cpp
@@ -68,6 +68,10 @@ void QgsScaleComboBox::showPopup()
{
QComboBox::showPopup();

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

0 comments on commit f457ece

Please sign in to comment.
You can’t perform that action at this time.