Ticket #12275: diff.txt

File diff.txt, 1.2 KB (added by Adrian, 9 years ago)
Line 
194c94
2< private static final DecimalFormat ONE_DECIMAL_PLACE = new DecimalFormat("0.0");
3---
4> private static final DecimalFormat TWO_DECIMAL_PLACES = new DecimalFormat("0.00");
5187c187
6< tr("The (compass) heading of the line segment being drawn."), 6, PROP_BACKGROUND_COLOR.get());
7---
8> tr("The (compass) heading of the line segment being drawn."), 7, PROP_BACKGROUND_COLOR.get());
9189c189
10< tr("The angle between the previous and the current way segment."), 6, PROP_BACKGROUND_COLOR.get());
11---
12> tr("The angle between the previous and the current way segment."), 7, PROP_BACKGROUND_COLOR.get());
13988c988
14< angleText.setText(a < 0 ? "--" : ONE_DECIMAL_PLACE.format(a) + " \u00B0");
15---
16> angleText.setText(a < 0 ? "--" : TWO_DECIMAL_PLACES.format(a) + " \u00B0");
17992c992
18< headingText.setText(h < 0 ? "--" : ONE_DECIMAL_PLACE.format(h) + " \u00B0");
19---
20> headingText.setText(h < 0 ? "--" : TWO_DECIMAL_PLACES.format(h) + " \u00B0");
211001c1001
22< distText.setText(dist < 0 ? "--" : NavigatableComponent.getDistText(dist, ONE_DECIMAL_PLACE, 0.01));
23---
24> distText.setText(dist < 0 ? "--" : NavigatableComponent.getDistText(dist, TWO_DECIMAL_PLACES, 0.001));