Merge branch 'master_14.3.1' into asm_14.3.1

Former-commit-id: 43ecc95cb9 [formerly cb92ade16f] [formerly 41e3037133] [formerly 43ecc95cb9 [formerly cb92ade16f] [formerly 41e3037133] [formerly e6ac4980b9 [formerly 41e3037133 [formerly b0fef17ac648ed5d13d6125fa600c915b131147d]]]]
Former-commit-id: e6ac4980b9
Former-commit-id: 840bca2edd [formerly 64fb434c9a] [formerly 047945540310783288fda381c73f597a6cb18c3a [formerly 75e90d1117]]
Former-commit-id: 182ff9272bf1aef74c86d753b92d2fa40948da52 [formerly b16e50a929]
Former-commit-id: ffe2894555
This commit is contained in:
Brian.Dyke 2014-10-15 13:55:32 -04:00
commit 170dd119bd

View file

@ -102,7 +102,7 @@ import de.micromata.opengis.kml.v_2_2_0.Vec2;
* ------------- -------- ----------- --------------------------
* Jun0 6, 2012 bsteffen Initial creation
* Jan 23, 2014 2703 bsteffen Use framesInfo for frame count.
*
* Oct 06, 2014 3686 njensen Ensure lastIndex is at least 1
*
* </pre>
*
@ -305,6 +305,8 @@ public class KmlExportJob extends Job {
int lastIndex = options.getLastFrameIndex();
lastIndex = Math.min(lastIndex, descriptor.getFramesInfo()
.getFrameCount());
// in case there's zero frames (i.e. all time agnostic)
lastIndex = Math.max(lastIndex, 1);
rscmonitor.beginTask("Saving " + rsc.getName(), lastIndex
- startIndex);
DataTime[] times = descriptor.getFramesInfo().getTimeMap()
@ -321,6 +323,7 @@ public class KmlExportJob extends Job {
}
}
}
List<DataTime> pastFrames = new ArrayList<DataTime>();
for (int i = startIndex; i < lastIndex; i += 1) {
descriptor.setFramesInfo(new FramesInfo(i));