- Timestamp:
- 2016-12-23T15:30:46+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetSelector.java
r10680 r11417 94 94 TaggingPreset group = preset.group; 95 95 while (group != null) { 96 Collections.addAll(groups, group.getLocaleName().toLowerCase(Locale.ENGLISH).split("\\s"));96 addLocaleNames(groups, group); 97 97 group = group.group; 98 98 } 99 Collections.addAll(names, preset.getLocaleName().toLowerCase(Locale.ENGLISH).split("\\s"));99 addLocaleNames(names, preset); 100 100 for (TaggingPresetItem item: preset.data) { 101 101 if (item instanceof KeyedItem) { … … 115 115 } 116 116 } 117 } 118 } 119 120 private static void addLocaleNames(Collection<String> collection, TaggingPreset preset) { 121 String locName = preset.getLocaleName(); 122 if (locName != null) { 123 Collections.addAll(collection, locName.toLowerCase(Locale.ENGLISH).split("\\s")); 117 124 } 118 125 }
Note:
See TracChangeset
for help on using the changeset viewer.