altoslib: Recover from a couple of API changes
authorKeith Packard <keithp@keithp.com>
Sun, 28 May 2017 06:42:52 +0000 (23:42 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 28 May 2017 06:42:52 +0000 (23:42 -0700)
Nothing serious.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/AltosFlightStatus.java
telegps/TeleGPSGraphUI.java

index 26f0379a71148c92675cdc9dc8169b1fb13827ed..2ff768700e029960dfe38e41a9b7d8d6f6708d5d 100644 (file)
@@ -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;
                        }
                }
 
index 3e76564020b8b492ce2b3ad6100c1befa14ec77f..85238d7b2e98dc08751e7ef2ae243a1ca9ed4fa8 100644 (file)
@@ -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);