Changeset 11623 in josm


Ignore:
Timestamp:
2017-02-25T21:52:46+01:00 (8 months ago)
Author:
stoecker
Message:

see #14120 - fix deprecation in core

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSParser.jj

    r11489 r11623  
    1919
    2020import org.openstreetmap.josm.Main;
     21import org.openstreetmap.josm.data.preferences.ColorProperty;
    2122import org.openstreetmap.josm.gui.mappaint.Keyword;
    2223import org.openstreetmap.josm.gui.mappaint.mapcss.Condition;
     
    11331134        LOOKAHEAD(2)
    11341135        pref=ident() t=<HEXCOLOR>
    1135         { return Main.pref.getColor("mappaint." + (sheet == null ? "MapCSS" : sheet.title) + "." + pref, ColorHelper.html2color(t.image)); }
     1136        { return new ColorProperty("mappaint." + (sheet == null ? "MapCSS" : sheet.title) + "." + pref, t.image).get(); }
    11361137    |
    11371138        t=<IDENT> { return new Keyword(t.image); }
Note: See TracChangeset for help on using the changeset viewer.