Merge "ASM #114 - Problem with Distance Speed Tool." into asm_14.2.2

Former-commit-id: 1b61a32634 [formerly 21cd415434] [formerly 80a83bd44c] [formerly 87216a87de [formerly 80a83bd44c [formerly 1e1c7cbcee94e782338d440d585a3217ad606725]]]
Former-commit-id: 87216a87de
Former-commit-id: 01c388eee593213b036d8a0380d954c53ca38d29 [formerly b6a4959e21]
Former-commit-id: 8d89e35985
This commit is contained in:
Juliya Dynina 2014-06-06 09:50:36 -05:00 committed by Gerrit Code Review
commit d807e4c657

View file

@ -722,6 +722,15 @@ public class StormTrackDisplay implements IRenderable {
|| currentState.newDuration != -1 || update) { || currentState.newDuration != -1 || update) {
if (currentState.timePoints != null if (currentState.timePoints != null
&& currentState.timePoints.length != frameCount) { && 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; currentState.timePoints = null;
} }