Changeset 3407 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2010-08-02T21:15:07+02:00 (14 years ago)
Author:
bastiK
Message:

fixed #5284 - change units at bottom of screen (yd -> ft)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java

    r3406 r3407  
    739739        public String getDistText(double dist) {
    740740            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) {
    742742                double b = dist / bValue;
    743743                return String.format(Locale.US, "%." + (b<10 ? 2 : 1) + "f %s", b, bName);
     
    751751    public static final SystemOfMeasurement METRIC_SOM = new SystemOfMeasurement(1, "m", 1000, "km");
    752752    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");
    754754
    755755    public static Map<String, SystemOfMeasurement> SYSTEMS_OF_MEASUREMENT;
Note: See TracChangeset for help on using the changeset viewer.