Changeset 6333 in josm for trunk/src/org/openstreetmap/josm/gui/layer
- Timestamp:
- 2013-10-27T03:20:19+01:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/layer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r6316 r6333 407 407 } 408 408 // repaint to make sure new data is displayed properly. 409 if (Main. map != null && Main.map.mapView != null) {409 if (Main.isDisplayingMapView()) { 410 410 Main.map.mapView.repaint(); 411 411 } -
trunk/src/org/openstreetmap/josm/gui/layer/ValidatorLayer.java
r6070 r6333 156 156 @Override 157 157 public void layerRemoved(Layer oldLayer) { 158 if (oldLayer instanceof OsmDataLayer && Main. map != null&& Main.map.mapView.getEditLayer() == null) {158 if (oldLayer instanceof OsmDataLayer && Main.isDisplayingMapView() && Main.map.mapView.getEditLayer() == null) { 159 159 Main.main.removeLayer(this); 160 160 } else if (oldLayer == this) { -
trunk/src/org/openstreetmap/josm/gui/layer/WMSLayer.java
r6313 r6333 604 604 if (request.getState() != null && !request.isPrecacheOnly()) { 605 605 finishedRequests.add(request); 606 if (Main. map != null && Main.map.mapView != null) {606 if (Main.isDisplayingMapView()) { 607 607 Main.map.mapView.repaint(); 608 608 }
Note:
See TracChangeset
for help on using the changeset viewer.