Changeset 8372 in josm for trunk/src/org/openstreetmap/josm/actions
- Timestamp:
- 2015-05-17T02:24:13+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/ImproveWayAccuracyHelper.java
r7937 r8372 57 57 } 58 58 59 candidate = Main.map.mapView.getNearestWay(p, 60 OsmPrimitive.isSelectablePredicate); 61 62 return candidate; 59 return Main.map.mapView.getNearestWay(p, OsmPrimitive.isSelectablePredicate); 63 60 } 64 61 … … 145 142 EastNorth a = wpp.a.getEastNorth(); 146 143 EastNorth b = wpp.b.getEastNorth(); 147 144 148 145 // Finding intersection of the segment with its altitude from p 149 146 EastNorth altitudeIntersection = Geometry.closestPointToSegment(a, b, pEN); 150 147 currentDistance = pEN.distance(altitudeIntersection); 151 148 152 149 if (!altitudeIntersection.equals(a) && !altitudeIntersection.equals(b)) { 153 150 // If the segment intersects with the altitude from p,
Note: See TracChangeset
for help on using the changeset viewer.