ASM #114 - Problem with Distance Speed Tool.

Change-Id: I2b3218b2fb407f99cf9c81edf69feb042a6fee75

Former-commit-id: efd0fb50b8 [formerly e5a9fa0827] [formerly c07bcacbf8] [formerly 50ab77046b [formerly c07bcacbf8 [formerly a38308fa5a6efe9a07ecd84bd93662bea32afc94]]]
Former-commit-id: 50ab77046b
Former-commit-id: a99f478987db9b40c18652f3f209154a8dfc3177 [formerly 5efb82ea3e]
Former-commit-id: a2423cfadc
This commit is contained in:
Michael Gamazaychikov 2014-06-04 18:42:13 +01:00
parent 460b543c6d
commit fc5acb6bcb

View file

@ -722,6 +722,15 @@ public class StormTrackDisplay implements IRenderable {
|| currentState.newDuration != -1 || update) {
if (currentState.timePoints != null
&& currentState.timePoints.length != frameCount) {
// need to set theAnchorPoint and theAnchorIndex here
// because timePoints get erased before we get to updateAnchorPoint
DataTime frameTime = paintProps.getDataTime();
for (int j=0;j<currentState.timePoints.length;j++){
if (frameTime.equals(currentState.timePoints[j].time)) {
theAnchorPoint = currentState.timePoints[j].coord;
theAnchorIndex = j;
}
}
currentState.timePoints = null;
}