Changeset 12946 in josm
- Timestamp:
- 2017-10-08T14:46:53+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Preferences.java
r12945 r12946 642 642 for (final Entry<String, Setting<?>> e : defaultsMap.entrySet()) { 643 643 if (e.getKey().startsWith(COLOR_PREFIX) && e.getValue() instanceof StringSetting) { 644 if (e.getKey().startsWith(COLOR_PREFIX+"layer.")) 645 continue; // do not add unchanged layer colors 644 646 StringSetting d = (StringSetting) e.getValue(); 645 647 if (d.getValue() != null) { -
trunk/src/org/openstreetmap/josm/gui/preferences/display/ColorPreference.java
r12942 r12946 97 97 Map<String, String> colorKeyListLayer = new TreeMap<>(); 98 98 for (String key : colorMap.keySet()) { 99 if (key.startsWith("layer 99 if (key.startsWith("layer.")) { 100 100 colorKeyListLayer.put(getName(key), key); 101 101 } else if (key.startsWith("mappaint.")) { … … 251 251 252 252 Boolean isRemoveColor(int row) { 253 return ((String) colors.getValueAt(row, 0)).startsWith("layer 253 return ((String) colors.getValueAt(row, 0)).startsWith("layer."); 254 254 } 255 255 … … 273 273 boolean ret = false; 274 274 for (String d : del) { 275 Config.getPref().put("color."+d, null);275 Main.pref.putColor(d, null); 276 276 } 277 277 for (int i = 0; i < colors.getRowCount(); ++i) {
Note:
See TracChangeset
for help on using the changeset viewer.