fixed caching in wind estimation track

This commit is contained in:
Axel Uhl committed 2012-03-08 15:48:07 +01:00
1 parent db57d35b0e
commit 57c44d3305
1 file changed
+5 -1
@@ -26,6 +26,10 @@ public class EstimatedWindFixesAsNavigableSet extends VirtualWindFixesAsNavigabl
this(track, trackedRace, null, null);
}
protected TrackBasedEstimationWindTrackImpl getTrack() {
return (TrackBasedEstimationWindTrackImpl) super.getTrack();
}
/**
* @param from expected to be an integer multiple of {@link #getResolutionInMilliseconds()} or <code>null</code>
* @param to expected to be an integer multiple of {@link #getResolutionInMilliseconds()} or <code>null</code>
@@ -36,7 +40,7 @@ public class EstimatedWindFixesAsNavigableSet extends VirtualWindFixesAsNavigabl
}
protected Wind getWind(Position p, TimePoint timePoint) {
return getTrackedRace().getEstimatedWindDirection(p, timePoint);
return getTrack().getEstimatedWindDirection(p, timePoint);
}
@Override