- Timestamp:
- 2015-10-27T23:40:12+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/SplitWayAction.java
r8958 r8963 262 262 final String name = DefaultNameFormatter.getInstance().format((Way) value); 263 263 // get rid of id from DefaultNameFormatter.decorateNameWithId() 264 final String nameWithoutId = name.replaceAll(" \\[id: -?\\d+\\]$", ""); 264 final String nameWithoutId = name 265 .replace(tr(" [id: {0}]", ((Way) value).getId()), "") 266 .replace(tr(" [id: {0}]", ((Way) value).getUniqueId()), ""); 265 267 ((JLabel) c).setText(tr("Segment {0}: {1}", index + 1, nameWithoutId)); 266 268 return c;
Note:
See TracChangeset
for help on using the changeset viewer.