Skip to content

Commit

Permalink
Don't show 'unknown' suffix for when displaying measurements
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 13, 2016
1 parent 087e148 commit 99e52af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/qgsdistancearea.cpp
Expand Up @@ -1081,11 +1081,11 @@ QString QgsDistanceArea::textUnit( double value, int decimals, QGis::UnitType u,
}
break;
case QGis::UnknownUnit:
unitLabel = QObject::tr( " unknown" );
//intentional fall-through
FALLTHROUGH;
unitLabel.clear();
break;
default:
QgsDebugMsg( QString( "Error: not picked up map units - actual value = %1" ).arg( u ) );
break;
}

return QLocale::system().toString( value, 'f', decimals ) + unitLabel;
Expand Down

0 comments on commit 99e52af

Please sign in to comment.