From: Keith Packard Date: Sun, 28 May 2017 06:42:52 +0000 (-0700) Subject: altoslib: Recover from a couple of API changes X-Git-Tag: 1.8~73 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=e4407afb514437ccd8db79ae29c6fa203140fa07 altoslib: Recover from a couple of API changes Nothing serious. Signed-off-by: Keith Packard --- diff --git a/altosui/AltosFlightStatus.java b/altosui/AltosFlightStatus.java index 26f0379a..2ff76870 100644 --- a/altosui/AltosFlightStatus.java +++ b/altosui/AltosFlightStatus.java @@ -93,14 +93,14 @@ public class AltosFlightStatus extends JComponent implements AltosFlightDisplay } void show(AltosState state, AltosListenerState listener_state) { - if (!same_call(state.callsign)) { + if (!same_call(state.cal_data.callsign)) { show(); - value.setText(state.callsign); - if (state.callsign == null) + value.setText(state.cal_data.callsign); + if (state.cal_data.callsign == null) setVisible(false); else setVisible(true); - last_call = state.callsign; + last_call = state.cal_data.callsign; } } diff --git a/telegps/TeleGPSGraphUI.java b/telegps/TeleGPSGraphUI.java index 3e765640..85238d7b 100644 --- a/telegps/TeleGPSGraphUI.java +++ b/telegps/TeleGPSGraphUI.java @@ -105,7 +105,7 @@ public class TeleGPSGraphUI extends AltosUIFrame implements AltosFontListener, A enable = new AltosUIEnable(); stats = new AltosFlightStats(flight_series); - graph = new AltosGraphNew(enable, stats, flight_series, cal_data); + graph = new AltosGraphNew(enable, stats, flight_series); statsTable = new AltosFlightStatsTable(stats);