Skip to content

Commit 99e52af

Browse files
committedFeb 13, 2016
Don't show 'unknown' suffix for when displaying measurements
1 parent 087e148 commit 99e52af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/core/qgsdistancearea.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,11 +1081,11 @@ QString QgsDistanceArea::textUnit( double value, int decimals, QGis::UnitType u,
10811081
}
10821082
break;
10831083
case QGis::UnknownUnit:
1084-
unitLabel = QObject::tr( " unknown" );
1085-
//intentional fall-through
1086-
FALLTHROUGH;
1084+
unitLabel.clear();
1085+
break;
10871086
default:
10881087
QgsDebugMsg( QString( "Error: not picked up map units - actual value = %1" ).arg( u ) );
1088+
break;
10891089
}
10901090

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

0 commit comments

Comments
 (0)
Please sign in to comment.