Changeset 10919 in josm
- Timestamp:
- 2016-08-31T16:12:28+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java
r10794 r10919 1452 1452 LatLon coordinate = ((Node) osm).getCoor(); 1453 1453 Collection<Bounds> allBounds = getBounds(osm); 1454 return allBounds != null && allBounds.stream().anyMatch(bounds -> bounds.contains(coordinate)); 1454 return coordinate != null && allBounds != null && allBounds.stream().anyMatch(bounds -> bounds.contains(coordinate)); 1455 1455 } else if (osm instanceof Way) { 1456 1456 Collection<Node> nodes = ((Way) osm).getNodes(); -
trunk/src/org/openstreetmap/josm/data/osm/Node.java
r10829 r10919 73 73 } 74 74 75 /** 76 * Returns lat/lon coordinates of this node, or {@code null} unless {@link #isLatLonKnown()} 77 * @return lat/lon coordinates of this node, or {@code null} unless {@link #isLatLonKnown()} 78 */ 75 79 @Override 76 80 public LatLon getCoor() {
Note:
See TracChangeset
for help on using the changeset viewer.