altosui: Don't say a decimal point for distances in meters
authorKeith Packard <keithp@keithp.com>
Wed, 12 Sep 2012 06:37:20 +0000 (23:37 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 12 Sep 2012 06:37:20 +0000 (23:37 -0700)
Useful for distances in miles, but not meters.

Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosDistance.java

index a5e7331c8dfcbc7aa8b4a0c367684217e632b621..a6026d4a51b57061fae32aaac465a81288879084 100644 (file)
@@ -44,6 +44,8 @@ public class AltosDistance extends AltosUnits {
        }
 
        int say_fraction() {
        }
 
        int say_fraction() {
-               return 1;
+               if (AltosConvert.imperial_units)
+                       return 1;
+               return 0;
        }
 }
\ No newline at end of file
        }
 }
\ No newline at end of file