altoslib,altosuilib: Remove stale source files
[fw/altos] / altosuilib / AltosFlightStatsTable.java
index beda38bf7aeb90900fe7cf1cbb647d794b057207..70a5611049e1b569dc5a4b66871e66560d44fcbe 100644 (file)
@@ -194,10 +194,12 @@ public class AltosFlightStatsTable extends JComponent implements AltosFontListen
                if (stats.state_start[AltosLib.ao_flight_boost] < stats.state_start[AltosLib.ao_flight_landed])
                        new FlightStat(layout, y++, "Flight time",
                                       String.format("%6.1f s", stats.landed_time - stats.boost_time));
-               if (stats.has_gps) {
+               if (stats.pad_lat != AltosLib.MISSING) {
                        new FlightStat(layout, y++, "Pad location",
                                       pos(stats.pad_lat,"N","S"),
                                       pos(stats.pad_lon,"E","W"));
+               }
+               if (stats.lat != AltosLib.MISSING) {
                        new FlightStat(layout, y++, "Last reported location",
                                       pos(stats.lat,"N","S"),
                                       pos(stats.lon,"E","W"));