Changeset 5328 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2012-07-12T14:34:39+02:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/DefaultNameFormatter.java
r5266 r5328 179 179 preset.nameTemplate.appendText(name, node); 180 180 } 181 name.append(" \u200E(").append(node.getCoor().latToString(CoordinateFormat.getDefaultFormat())).append(", ").append(node.getCoor().lonToString(CoordinateFormat.getDefaultFormat())).append(")"); 181 if (node.getCoor() != null) { 182 name.append(" \u200E(").append(node.getCoor().latToString(CoordinateFormat.getDefaultFormat())).append(", ").append(node.getCoor().lonToString(CoordinateFormat.getDefaultFormat())).append(")"); 183 } 182 184 } 183 185 decorateNameWithId(name, node); -
trunk/src/org/openstreetmap/josm/gui/dialogs/InspectPrimitiveDialog.java
r4420 r5328 273 273 274 274 void addCoordinates(Node n) { 275 add(tr("Coordinates: "), 276 Double.toString(n.getCoor().lat()), ", ", 277 Double.toString(n.getCoor().lon())); 278 add(tr("Coordinates (projected): "), 279 Double.toString(n.getEastNorth().east()), ", ", 280 Double.toString(n.getEastNorth().north())); 275 if (n.getCoor() != null) { 276 add(tr("Coordinates: "), 277 Double.toString(n.getCoor().lat()), ", ", 278 Double.toString(n.getCoor().lon())); 279 add(tr("Coordinates (projected): "), 280 Double.toString(n.getEastNorth().east()), ", ", 281 Double.toString(n.getEastNorth().north())); 282 } 281 283 } 282 284
Note:
See TracChangeset
for help on using the changeset viewer.