Ignore:
Timestamp:
2017-04-14T23:33:58+02:00 (9 years ago)
Author:
donvip
Message:

update to JOSM 11713

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/CommandLine/src/CommandLine/LengthAction.java

    r32779 r33238  
    2424import org.openstreetmap.josm.data.osm.Node;
    2525import org.openstreetmap.josm.data.osm.OsmPrimitive;
    26 import org.openstreetmap.josm.gui.MapFrame;
     26import org.openstreetmap.josm.data.preferences.ColorProperty;
    2727import org.openstreetmap.josm.gui.MapView;
    2828import org.openstreetmap.josm.gui.layer.Layer;
     
    4545    private boolean drawing;
    4646
    47     public LengthAction(MapFrame mapFrame, CommandLine parentPlugin) {
    48         super(null, "addsegment.png", null, mapFrame, ImageProvider.getCursor("crosshair", null));
     47    public LengthAction(CommandLine parentPlugin) {
     48        super(null, "addsegment.png", null, ImageProvider.getCursor("crosshair", null));
    4949        this.parentPlugin = parentPlugin;
    50         selectedColor = Main.pref.getColor(marktr("selected"), Color.red);
     50        selectedColor = new ColorProperty(marktr("selected"), Color.red).get();
    5151        cursorCrosshair = ImageProvider.getCursor("crosshair", null);
    5252        cursorJoinNode = ImageProvider.getCursor("crosshair", "joinnode");
Note: See TracChangeset for help on using the changeset viewer.