Ignore:
Timestamp:
2016-06-12T20:46:23+02:00 (8 years ago)
Author:
stoecker
Message:

gsoc-core - patch by Michael Zangl - see #12953 - remove deprecation usage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmApi.java

    r10212 r10364  
    249249             * been disabled! */
    250250            if (Main.isDisplayingMapView()) {
    251                 for (Layer l : Main.map.mapView.getLayersOfType(ImageryLayer.class)) {
     251                for (Layer l : Main.getLayerManager().getLayersOfType(ImageryLayer.class)) {
    252252                    if (((ImageryLayer) l).getInfo().isBlacklisted()) {
    253253                        Main.info(tr("Removed layer {0} because it is not allowed by the configured API.", l.getName()));
Note: See TracChangeset for help on using the changeset viewer.