Changeset 2343 in josm for trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTask.java
- Timestamp:
- 2009-10-28T20:14:07+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTask.java
r2328 r2343 104 104 105 105 protected OsmDataLayer getEditLayer() { 106 if (Main.map == null) return null; 107 if (Main.map.mapView == null) return null; 106 if (!Main.isDisplayingMapView()) return null; 108 107 return Main.map.mapView.getEditLayer(); 109 108 } … … 111 110 protected int getNumDataLayers() { 112 111 int count = 0; 113 if (Main.map == null) return 0; 114 if (Main.map.mapView == null) return 0; 112 if (!Main.isDisplayingMapView()) return 0; 115 113 Collection<Layer> layers = Main.map.mapView.getAllLayers(); 116 114 for (Layer layer : layers) { … … 123 121 124 122 protected OsmDataLayer getFirstDataLayer() { 125 if (Main.map == null) return null; 126 if (Main.map.mapView == null) return null; 123 if (!Main.isDisplayingMapView()) return null; 127 124 Collection<Layer> layers = Main.map.mapView.getAllLayersAsList(); 128 125 for (Layer layer : layers) {
Note:
See TracChangeset
for help on using the changeset viewer.