Issue #2227 fix weird swapping behavior on 4 panel

Change-Id: I87c35349e7aa6b91974f2c8f5edf2531d72a806f

Former-commit-id: 83eaaa8e7635c15905f2028dd9f91425bc54826f
This commit is contained in:
Matt Nash 2013-07-31 14:50:42 -05:00
parent 91afb50333
commit 341138f01c

View file

@ -293,10 +293,8 @@ public class RadarMLResource extends RadarGraphicsResource {
Map<Integer, IWireframeShape> shapeMap = null;
synchronized (shapes) {
shapeMap = shapes.get(time);
if (shapeMap == null || refresh == true && time != null) {
if (shapeMap != null) {
disposeShapeMap(shapeMap);
}
if (time != null && (shapeMap == null || refresh)) {
disposeShapeMap(shapeMap);
shapeMap = new HashMap<Integer, IWireframeShape>();
shapes.put(time, shapeMap);
displayedDate = time;