Changeset 8510 in josm for trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/AddWayHandler.java
- Timestamp:
- 2015-06-20T23:42:21+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/AddWayHandler.java
r8444 r8510 127 127 Point p = Main.map.mapView.getPoint(ll); 128 128 nd = Main.map.mapView.getNearestNode(p, OsmPrimitive.isUsablePredicate); 129 if (nd !=null && nd.getCoor().greatCircleDistance(ll) > Main.pref.getDouble("remote.tolerance", 0.1)) {129 if (nd != null && nd.getCoor().greatCircleDistance(ll) > Main.pref.getDouble("remote.tolerance", 0.1)) { 130 130 nd = null; // node is too far 131 131 } … … 141 141 } 142 142 143 if (prev !=null) {143 if (prev != null) { 144 144 nd = prev; 145 } else if (nd ==null) {145 } else if (nd == null) { 146 146 nd = new Node(ll); 147 147 // Now execute the commands to add this node.
Note:
See TracChangeset
for help on using the changeset viewer.