X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=altosui%2FAltosDescent.java;fp=altosui%2FAltosDescent.java;h=b56a08bc3cfad7f46d0cd32cc9a20c284e0366c9;hp=e6710524ec03647e5c77ba38732124d60e291f4d;hb=90686853e46b7f0df9bdaf671f859819eef926e0;hpb=7bdd0deabaae38ddfecd1ea2ea8deaf9af40b2ac 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) {