Changeset 32398 in osm for applications/editors/josm/plugins/reltoolbox/src/relcontext/ExtraNameFormatHook.java
- Timestamp:
- 2016-06-25T11:56:57+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reltoolbox/src/relcontext/ExtraNameFormatHook.java
r32395 r32398 26 26 @Override 27 27 public String checkFormat(IWay way, String defaultName) { 28 if (way.get("place") != null && way.get("name") == null && way.get("place_name") != null 28 if (way.get("place") != null && way.get("name") == null && way.get("place_name") != null) 29 29 return way.get("place_name") + " " + defaultName; 30 30 return null; … … 37 37 String name = relation.get("destination"); 38 38 if (type.equals("destination_sign") && name != null) { 39 if (relation.get("distance") != null 39 if (relation.get("distance") != null) { 40 40 name += " " + relation.get("distance"); 41 41 } 42 if (defaultName.indexOf('"') < 0 42 if (defaultName.indexOf('"') < 0) 43 43 return '"' + name + "\" " + defaultName; 44 44 else
Note:
See TracChangeset
for help on using the changeset viewer.