summaryrefslogtreecommitdiff
path: root/altosui/AltosDescent.java
diff options
context:
space:
mode:
Diffstat (limited to 'altosui/AltosDescent.java')
-rw-r--r--altosui/AltosDescent.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/altosui/AltosDescent.java b/altosui/AltosDescent.java
index e6710524..b56a08bc 100644
--- a/altosui/AltosDescent.java
+++ b/altosui/AltosDescent.java
@@ -133,11 +133,17 @@ public class AltosDescent extends JComponent implements AltosFlightDisplay {
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) {
- show(String.format(format, v));
+ if (v == AltosLib.MISSING)
+ show("Missing");
+ else
+ show(String.format(format, v));
}
public void font_size_changed(int font_size) {