Ignore:
Timestamp:
2009-06-06T13:38:32+02:00 (15 years ago)
Author:
stoecker
Message:

fix #2302 - patch by jttt - some code cleanup for better encapsulation

File:
1 edited

Legend:

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

    r1545 r1636  
    801801            // (for semi-parallel lines, intersection might be miles away!)
    802802            if (Main.map.mapView.getPoint(n.eastNorth).distance(Main.map.mapView.getPoint(intersection)) < snapToIntersectionThreshold) {
    803                 n.eastNorth = intersection;
     803                n.setEastNorth(intersection);
    804804                return;
    805805            }
     
    814814            double c = A.distanceSq(B);
    815815            q = (a - b + c) / (2*c);
    816             n.eastNorth = new EastNorth(
    817                 B.east() + q * (A.east() - B.east()),
    818                 B.north() + q * (A.north() - B.north()));
     816            n.setEastNorth(B.east() + q * (A.east() - B.east()), B.north() + q * (A.north() - B.north()));
    819817        }
    820818    }
Note: See TracChangeset for help on using the changeset viewer.