- Timestamp:
- 2017-04-24T00:51:00+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapViewState.java
r11746 r11991 189 189 190 190 /** 191 * Gets the {@link MapViewPoint} for the given node. This is faster than {@link #getPointFor(LatLon)} because it uses the node east/north192 * cache. 191 * Gets the {@link MapViewPoint} for the given node. 192 * This is faster than {@link #getPointFor(LatLon)} because it uses the node east/north cache. 193 193 * @param node The node 194 194 * @return The position of that node. … … 197 197 public MapViewPoint getPointFor(Node node) { 198 198 try { 199 return getPointFor(node.getEastNorth(getProjection())); 199 return getPointFor(Optional.ofNullable(node.getEastNorth(getProjection())) 200 .orElseThrow(IllegalArgumentException::new)); 200 201 } catch (JosmRuntimeException | IllegalArgumentException | IllegalStateException e) { 201 202 throw BugReport.intercept(e).put("node", node);
Note:
See TracChangeset
for help on using the changeset viewer.