Changeset 10716 in josm for trunk/src/org/openstreetmap/josm/io
- Timestamp:
- 2016-08-03T15:30:04+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/io/remotecontrol/handler
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/AddNodeHandler.java
r10615 r10716 86 86 if (Main.isDisplayingMapView()) { 87 87 Point p = Main.map.mapView.getPoint(ll); 88 node = Main.map.mapView.getNearestNode(p, OsmPrimitive .isUsablePredicate);88 node = Main.map.mapView.getNearestNode(p, OsmPrimitive::isUsable); 89 89 if (node != null && node.getCoor().greatCircleDistance(ll) > Main.pref.getDouble("remotecontrol.tolerance", 0.1)) { 90 90 node = null; // node is too far -
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/AddWayHandler.java
r10615 r10716 127 127 if (Main.isDisplayingMapView()) { 128 128 Point p = Main.map.mapView.getPoint(ll); 129 nd = Main.map.mapView.getNearestNode(p, OsmPrimitive .isUsablePredicate);129 nd = Main.map.mapView.getNearestNode(p, OsmPrimitive::isUsable); 130 130 if (nd != null && nd.getCoor().greatCircleDistance(ll) > Main.pref.getDouble("remote.tolerance", 0.1)) { 131 131 nd = null; // node is too far
Note:
See TracChangeset
for help on using the changeset viewer.