summaryrefslogtreecommitdiff
path: root/altosui/AltosLanded.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-06-10 11:32:57 -0700
committerKeith Packard <keithp@keithp.com>2014-06-10 11:32:57 -0700
commit90686853e46b7f0df9bdaf671f859819eef926e0 (patch)
tree8eddf81660f83bc55fd105dbffddb1dcd1921453 /altosui/AltosLanded.java
parent7bdd0deabaae38ddfecd1ea2ea8deaf9af40b2ac (diff)
altosui: Show "Missing" instead of huge numbers in descent/landed tabs
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosLanded.java')
-rw-r--r--altosui/AltosLanded.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/altosui/AltosLanded.java b/altosui/AltosLanded.java
index bb52fe2b..d2628fb0 100644
--- a/altosui/AltosLanded.java
+++ b/altosui/AltosLanded.java
@@ -51,7 +51,10 @@ public class AltosLanded extends JComponent implements AltosFlightDisplay, Actio
void show(double v) {
this.v = v;
- show(units.show(8, v));
+ if (v == AltosLib.MISSING)
+ show("Missing");
+ else
+ show(units.show(8, v));
}
void show(String format, double v) {