Ignore:
Timestamp:
2016-08-19T03:43:18+02:00 (8 years ago)
Author:
Don-vip
Message:

see #13309 - fix most of deprecation warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/ImproveWayAccuracyAction.java

    r10827 r10853  
    3737import org.openstreetmap.josm.data.osm.visitor.paint.MapPath2D;
    3838import org.openstreetmap.josm.data.osm.visitor.paint.PaintColors;
     39import org.openstreetmap.josm.data.preferences.ColorProperty;
    3940import org.openstreetmap.josm.gui.MapFrame;
    4041import org.openstreetmap.josm.gui.MapView;
     
    152153    @Override
    153154    protected void readPreferences() {
    154         guideColor = Main.pref.getColor(marktr("improve way accuracy helper line"), null);
    155         if (guideColor == null) guideColor = PaintColors.HIGHLIGHT.get();
     155        guideColor = new ColorProperty(marktr("improve way accuracy helper line"), (Color) null).get();
     156        if (guideColor == null)
     157            guideColor = PaintColors.HIGHLIGHT.get();
    156158
    157159        selectTargetWayStroke = GuiHelper.getCustomizedStroke(Main.pref.get("improvewayaccuracy.stroke.select-target", "2"));
Note: See TracChangeset for help on using the changeset viewer.