diff options
author | Keith Packard <keithp@keithp.com> | 2016-05-24 23:40:03 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2016-05-24 23:40:03 -0700 |
commit | 7b5521966119fcc290591bf1b397506ef44cedea (patch) | |
tree | 8b16b8f5308d7e3873df0e3e7d6faf5f24ee1ebe /altoslib/AltosMapLine.java | |
parent | 1ea855f95772a8a394407e0070be1ed9cc0f6650 (diff) |
altoslib: use miles for distances > 1000ft.
This makes both the map line and the other distance displays use miles
for distances greater than 1000 feet.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosMapLine.java')
-rw-r--r-- | altoslib/AltosMapLine.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/altoslib/AltosMapLine.java b/altoslib/AltosMapLine.java index ed2c0844..187aa6d9 100644 --- a/altoslib/AltosMapLine.java +++ b/altoslib/AltosMapLine.java @@ -50,7 +50,7 @@ public abstract class AltosMapLine { if (AltosConvert.imperial_units) { distance = AltosConvert.meters_to_feet(distance); - if (distance < 10000) { + if (distance < 1000) { format = "%4.0fft"; } else { distance /= 5280; @@ -64,7 +64,7 @@ public abstract class AltosMapLine { format = "%5.0fmi"; } } else { - if (distance < 10000) { + if (distance < 1000) { format = "%4.0fm"; } else { distance /= 1000; |