Ignore:
Timestamp:
2015-05-17T02:24:13+02:00 (5 years ago)
Author:
Don-vip
Message:

code cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/ImproveWayAccuracyHelper.java

    r7937 r8372  
    5757        }
    5858
    59         candidate = Main.map.mapView.getNearestWay(p,
    60                 OsmPrimitive.isSelectablePredicate);
    61 
    62         return candidate;
     59        return Main.map.mapView.getNearestWay(p, OsmPrimitive.isSelectablePredicate);
    6360    }
    6461
     
    145142            EastNorth a = wpp.a.getEastNorth();
    146143            EastNorth b = wpp.b.getEastNorth();
    147            
     144
    148145            // Finding intersection of the segment with its altitude from p
    149146            EastNorth altitudeIntersection = Geometry.closestPointToSegment(a, b, pEN);
    150147            currentDistance = pEN.distance(altitudeIntersection);
    151            
     148
    152149            if (!altitudeIntersection.equals(a) && !altitudeIntersection.equals(b)) {
    153150                // If the segment intersects with the altitude from p,
Note: See TracChangeset for help on using the changeset viewer.