Ignore:
Timestamp:
2014-01-04T14:56:55+01:00 (10 years ago)
Author:
Don-vip
Message:

fix #9521 - Colors no more displayed in preferences dialog since [6578]+[6580]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/Preferences.java

    r6617 r6624  
    852852    }
    853853
     854    /**
     855     * Returns the color for the given key.
     856     * @param key The color key
     857     * @return the color
     858     */
    854859    public Color getColor(ColorKey key) {
    855860        return getColor(key.getColorName(), key.getSpecialName(), key.getDefaultValue());
     
    870875        }
    871876        String colStr = specName != null ? get("color."+specName) : "";
    872         if(colStr.isEmpty()) {
    873             colStr = get("color." + colKey, "");
     877        if (colStr.isEmpty()) {
     878            colStr = get("color." + colKey, ColorHelper.color2html(def));
    874879        }
    875880        return colStr.isEmpty() ? def : ColorHelper.html2color(colStr);
Note: See TracChangeset for help on using the changeset viewer.