Changeset 32329 in osm for applications/editors/josm/plugins/photoadjust/src
- Timestamp:
- 2016-06-19T16:08:56+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/photoadjust/src/org/openstreetmap/josm/plugins/photoadjust/PhotoAdjustMapMode.java
r31962 r32329 133 133 // GeoImageLayer. GeoImageLayer's are handled by the plug-in 134 134 // directly. 135 if (! (Main. map.mapView.getActiveLayer() instanceof GeoImageLayer)) {135 if (! (Main.getLayerManager().getActiveLayer() instanceof GeoImageLayer)) { 136 136 activateMode(); 137 137 } … … 208 208 private boolean hasLayersToAdjust() { 209 209 if (Main.map == null || Main.map.mapView == null) return false; 210 return ! Main. map.mapView.getLayersOfType(GeoImageLayer.class).isEmpty();210 return ! Main.getLayerManager().getLayersOfType(GeoImageLayer.class).isEmpty(); 211 211 } 212 212 … … 217 217 */ 218 218 private List<GeoImageLayer> getVisibleGeoImageLayers() { 219 List<GeoImageLayer> all = new ArrayList<>(Main. map.mapView.getLayersOfType(GeoImageLayer.class));219 List<GeoImageLayer> all = new ArrayList<>(Main.getLayerManager().getLayersOfType(GeoImageLayer.class)); 220 220 Iterator<GeoImageLayer> it = all.iterator(); 221 221 while (it.hasNext()) {
Note:
See TracChangeset
for help on using the changeset viewer.