- Timestamp:
- 2009-09-14T21:39:03+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/DefaultNameFormatter.java
r2070 r2136 9 9 import java.util.HashSet; 10 10 import java.util.List; 11 import java.util.Set; 11 12 12 13 import org.openstreetmap.josm.Main; … … 160 161 name += " ("; 161 162 String nameTag = null; 162 for (String n : getNamingtagsForRelations()) { 163 if (n.equals("name")) { 163 Set<String> namingTags = new HashSet<String>(getNamingtagsForRelations()); 164 for (String n : relation.keySet()) { 165 // #3328: "note " and " note" are name tags too 166 if (namingTags.contains(n.trim())) { 164 167 if (Main.pref.getBoolean("osm-primitives.localize-name", true)) { 165 168 nameTag = relation.getLocalName(); … … 167 170 nameTag = relation.getName(); 168 171 } 169 } else { 170 nameTag = relation.get(n); 172 if (nameTag == null) { 173 nameTag = relation.get(n); 174 } 171 175 } 172 176 if (nameTag != null) {
Note:
See TracChangeset
for help on using the changeset viewer.