summaryrefslogtreecommitdiff
path: root/altosuilib/AltosUIMapPreloadNew.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-05-10 22:46:58 -0700
committerKeith Packard <keithp@keithp.com>2016-05-11 23:22:15 -0700
commit60f4d69592c440ab7bb67a04f4c07fc7279d2c20 (patch)
tree8edfca4a59b5d15d251607075453aeab1a9f376f /altosuilib/AltosUIMapPreloadNew.java
parent6a6da23335e6e5864387c7a22946f80f51056a4f (diff)
altoslib: Switch distance from m/ft to km/miles for large values
This adds lots of infrastructure to deal with making the unit used depend on the value itself, and then uses it only for distances. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosuilib/AltosUIMapPreloadNew.java')
-rw-r--r--altosuilib/AltosUIMapPreloadNew.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/altosuilib/AltosUIMapPreloadNew.java b/altosuilib/AltosUIMapPreloadNew.java
index 3269bbdd..cce07ab4 100644
--- a/altosuilib/AltosUIMapPreloadNew.java
+++ b/altosuilib/AltosUIMapPreloadNew.java
@@ -231,7 +231,7 @@ public class AltosUIMapPreloadNew extends AltosUIFrame implements ActionListener
Double r = (Double) radius.getSelectedItem();
if (AltosPreferences.imperial_units())
- r = AltosConvert.distance.inverse(r);
+ r = AltosConvert.miles_to_meters(r);
else
r = r * 1000;
loading = true;