summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--altosui/AltosDataPointReader.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/altosui/AltosDataPointReader.java b/altosui/AltosDataPointReader.java
index fa48013f..c3aabb0c 100644
--- a/altosui/AltosDataPointReader.java
+++ b/altosui/AltosDataPointReader.java
@@ -69,10 +69,14 @@ class AltosDataPointReader implements Iterable<AltosDataPoint> {
throw new UnsupportedOperationException();
}
public boolean hasNext() {
+ if (record != null && record.state == Altos.ao_flight_landed)
+ return false;
return iter.hasNext();
}
public AltosDataPoint next() {
- read_next_record();
+ do {
+ read_next_record();
+ } while (record.time < -1.0 && hasNext());
return current_dp();
}
};