mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -04:00
Don't show 'unknown' suffix for when displaying measurements
This commit is contained in:
parent
087e1489e3
commit
99e52af4aa
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user