Skip to content
Permalink
Browse files

Don't show 'unknown' suffix for when displaying measurements

  • Loading branch information
nyalldawson committed Feb 12, 2016
1 parent 087e148 commit 99e52af4aa16f8dbf5e7269dddd75a80df65ded8
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/core/qgsdistancearea.cpp
@@ -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;

0 comments on commit 99e52af

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