- Timestamp:
- 2010-08-02T21:15:07+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r3406 r3407 739 739 public String getDistText(double dist) { 740 740 double a = dist / aValue; 741 if (a > bValue / aValue) { 741 if (!Main.pref.getBoolean("system_of_measurement.use_only_lower_unit", false) && a > bValue / aValue) { 742 742 double b = dist / bValue; 743 743 return String.format(Locale.US, "%." + (b<10 ? 2 : 1) + "f %s", b, bName); … … 751 751 public static final SystemOfMeasurement METRIC_SOM = new SystemOfMeasurement(1, "m", 1000, "km"); 752 752 public static final SystemOfMeasurement CHINESE_SOM = new SystemOfMeasurement(1.0/3.0, "\u5e02\u5c3a" /* chi */, 500, "\u5e02\u91cc" /* li */); 753 public static final SystemOfMeasurement IMPERIAL_SOM = new SystemOfMeasurement(0. 9144, "yd.", 1609.344, "mi.");753 public static final SystemOfMeasurement IMPERIAL_SOM = new SystemOfMeasurement(0.3048, "ft", 1609.344, "mi"); 754 754 755 755 public static Map<String, SystemOfMeasurement> SYSTEMS_OF_MEASUREMENT;
Note:
See TracChangeset
for help on using the changeset viewer.