Changeset 6624 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2014-01-04T14:56:55+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Preferences.java
r6617 r6624 852 852 } 853 853 854 /** 855 * Returns the color for the given key. 856 * @param key The color key 857 * @return the color 858 */ 854 859 public Color getColor(ColorKey key) { 855 860 return getColor(key.getColorName(), key.getSpecialName(), key.getDefaultValue()); … … 870 875 } 871 876 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)); 874 879 } 875 880 return colStr.isEmpty() ? def : ColorHelper.html2color(colStr);
Note:
See TracChangeset
for help on using the changeset viewer.