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/gui/layer/geoimage/CorrelateGpxWithImages.java

    r10308 r10364  
    181181                // If none, we'll zoom to the bounding box of the layer with the photos.
    182182                boolean boundingBoxedLayerFound = false;
    183                 for (Layer l: Main.map.mapView.getAllLayers()) {
     183                for (Layer l: Main.getLayerManager().getLayers()) {
    184184                    if (l != yLayer) {
    185185                        BoundingXYVisitor bbox = new BoundingXYVisitor();
     
    557557    public void actionPerformed(ActionEvent arg0) {
    558558        // Construct the list of loaded GPX tracks
    559         Collection<Layer> layerLst = Main.map.mapView.getAllLayers();
     559        Collection<Layer> layerLst = Main.getLayerManager().getLayers();
    560560        GpxDataWrapper defaultItem = null;
    561561        for (Layer cur : layerLst) {
Note: See TracChangeset for help on using the changeset viewer.