Merge "Issue #2072 Fix concurrency problems when init is called before time matching is done." into development
Former-commit-id: 88606cb2aef6e92e39ca5947c28784f5bc5b919c
This commit is contained in:
commit
b9464b7adf
1 changed files with 14 additions and 7 deletions
|
@ -92,6 +92,8 @@ import com.vividsolutions.jts.geom.Coordinate;
|
|||
* Apr 21, 2009 chammack Refactor to common pointData model
|
||||
* Feb 01, 2013 1567 njensen Refactor handling of updates
|
||||
* May 14, 2013 1869 bsteffen Get plots working without dataURI
|
||||
* Jun 06, 2013 2072 bsteffen Fix concurrency problems when init is
|
||||
* called before time matching is done.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -272,6 +274,10 @@ public class PlotResource2 extends
|
|||
progressiveDisclosure.setPlotWidth(plotWidth);
|
||||
|
||||
DataTime[] dts = this.descriptor.getFramesInfo().getTimeMap().get(this);
|
||||
// if this is null then the time matcher has not yet had time to time
|
||||
// match this, in which case frames will have to load when they are
|
||||
// first painted.
|
||||
if (dts != null) {
|
||||
// init backwards
|
||||
for (int i = dts.length - 1; i > -1; i--) {
|
||||
DataTime time = dts[i];
|
||||
|
@ -283,6 +289,7 @@ public class PlotResource2 extends
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private synchronized FrameInformation startFrameInit(DataTime time) {
|
||||
FrameInformation frame = new FrameInformation();
|
||||
|
|
Loading…
Add table
Reference in a new issue