summaryrefslogtreecommitdiff
path: root/altosui/AltosFlightStatsTable.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-02-11 10:34:47 -0800
committerKeith Packard <keithp@keithp.com>2013-02-11 10:40:19 -0800
commit59365eb4e1f63a1ced1667ac233058a06a8eecef (patch)
tree790fbb2caaf5a3595e3b2eb2496eb8ba52ca22c6 /altosui/AltosFlightStatsTable.java
parent2a9ca1dcd00da2cfdd0a2ea616308dfb64ee80d4 (diff)
altosui: Remove graph series which aren't available
Make sure all graph series have actual data underlying them by checking the available data before creating the series objects. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosFlightStatsTable.java')
-rw-r--r--altosui/AltosFlightStatsTable.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/altosui/AltosFlightStatsTable.java b/altosui/AltosFlightStatsTable.java
index 5ed53c1a..a35b5f63 100644
--- a/altosui/AltosFlightStatsTable.java
+++ b/altosui/AltosFlightStatsTable.java
@@ -126,7 +126,7 @@ public class AltosFlightStatsTable extends JComponent {
new FlightStat(layout, y++, "Flight time",
String.format("%6.1f s", stats.state_end[Altos.ao_flight_main] -
stats.state_start[Altos.ao_flight_boost]));
- if (stats.lat != -1 && stats.lon != -1) {
+ if (stats.has_gps) {
new FlightStat(layout, y++, "Pad location",
pos(stats.pad_lat,"N","S"),
pos(stats.pad_lon,"E","W"));