Changeset 5563 in josm
- Timestamp:
- 2012-11-04T02:36:23+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java
r5558 r5563 862 862 // all items were unset (and so is default) 863 863 originalValue = lhm.get(""); 864 combo.setSelectedItem(originalValue); 864 if ("force".equals(use_last_as_default) && lastValue.containsKey(key)) { 865 combo.setSelectedItem(lhm.get(lastValue.get(key))); 866 } else { 867 combo.setSelectedItem(originalValue); 868 } 865 869 } else { 866 870 originalValue = lhm.get(DIFFERENT); … … 1223 1227 public TemplateEntry nameTemplate; 1224 1228 public Match nameTemplateFilter; 1225 private static HashMap<String,String> lastValue = new HashMap<String,String>();1229 private static final HashMap<String,String> lastValue = new HashMap<String,String>(); 1226 1230 1227 1231 /**
Note:
See TracChangeset
for help on using the changeset viewer.