Ignore:
Timestamp:
2013-10-27T05:35:41+01:00 (6 years ago)
Author:
Don-vip
Message:

code cleanup / robustness in edit layer handling

Location:
trunk/src/org/openstreetmap/josm/command
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/Command.java

    r6333 r6336  
    8686     */
    8787    public Command() {
    88         this.layer = Main.isDisplayingMapView() ? Main.map.mapView.getEditLayer() : null;
     88        this.layer = Main.main.getEditLayer();
    8989    }
    9090
  • trunk/src/org/openstreetmap/josm/command/RelationMemberConflictResolverCommand.java

    r6248 r6336  
    6868
    6969        // remember the layer
    70         layer = Main.map.mapView.getEditLayer();
     70        layer = Main.main.getEditLayer();
    7171        return true;
    7272    }
     
    8989
    9090        Main.map.mapView.setActiveLayer(layer);
    91         OsmDataLayer editLayer = Main.map.mapView.getEditLayer();
     91        OsmDataLayer editLayer = Main.main.getEditLayer();
    9292
    9393        // restore the former state
Note: See TracChangeset for help on using the changeset viewer.