Fixed double occurence of the first speed with bearing step

This commit is contained in:
Vladislav Chumak committed 2018-06-18 00:23:22 +02:00
1 parent 48559964e3
commit 8b3e7c40a2
1 file changed
+1 -1
@@ -1175,7 +1175,7 @@ public abstract class GPSFixTrackImpl<ItemType, FixType extends GPSFix> extends
lockForRead();
FixType firstFix = getLastFixAtOrBefore(fromTimePoint);
TimePoint currentTimePoint = firstFix == null ? fromTimePoint : firstFix.getTimePoint();
for (Iterator<FixType> iterator = getFixesIterator(currentTimePoint, true); iterator
for (Iterator<FixType> iterator = getFixesIterator(currentTimePoint, false); iterator
.hasNext(); currentTimePoint = iterator.next().getTimePoint()) {
SpeedWithBearing estimatedSpeed = getEstimatedSpeed(currentTimePoint);
if (estimatedSpeed != null) {