Merge pull request #4019 from Mapotempo/master

Display unit number only if <= 100 in the navigation maneuver panel.
This commit is contained in:
burivuh 2016-08-19 14:11:25 +04:00 committed by GitHub
commit e390322329

View file

@ -44,7 +44,10 @@ bool FormatDistanceImpl(double m, string & res,
res = ToStringPrecision(v, v >= 10.0 ? 0 : 1) + high;
}
else
res = ToStringPrecision(lowV, 0) + low;
{
// To display unit number only if <= 100.
res = ToStringPrecision(lowV <= 100.0 ? lowV : round(lowV / 10) * 10, 0) + low;
}
return true;
}