Ignore:
Timestamp:
2012-07-28T15:59:38+02:00 (12 years ago)
Author:
Don-vip
Message:

see #7907 - MapCSS fixes

Location:
trunk/src/org/openstreetmap/josm/gui/mappaint
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/AreaElemStyle.java

    r5342 r5376  
    4949
    5050            fillImage.alpha = Math.min(255, Math.max(0, Integer.valueOf(Main.pref.getInteger("mappaint.fill-image-alpha", 255))));
    51             Integer pAlpha = Utils.color_float2int(c.get("fill-opacity", null, float.class));
     51            Integer pAlpha = Utils.color_float2int(c.get(FILL_OPACITY, null, float.class));
    5252            if (pAlpha != null) {
    5353                fillImage.alpha = pAlpha;
     
    5757            if (color != null) {
    5858                int alpha = Math.min(255, Math.max(0, Integer.valueOf(Main.pref.getInteger("mappaint.fillalpha", 50))));
    59                 Integer pAlpha = Utils.color_float2int(c.get("fill-opacity", null, float.class));
     59                Integer pAlpha = Utils.color_float2int(c.get(FILL_OPACITY, null, float.class));
    6060                if (pAlpha != null) {
    6161                    alpha = pAlpha;
  • trunk/src/org/openstreetmap/josm/gui/mappaint/StyleKeys.java

    r5342 r5376  
    1111    public static final String FILL_COLOR = "fill-color";
    1212    public static final String FILL_IMAGE = "fill-image";
     13    public static final String FILL_OPACITY = "fill-opacity";
    1314    public static final String ICON_IMAGE = "icon-image";
    1415    public static final String MODIFIER = "modifier";
Note: See TracChangeset for help on using the changeset viewer.