Ignore:
Timestamp:
2013-03-08T19:35:50+01:00 (11 years ago)
Author:
Don-vip
Message:

use of getPoint2D() instead of getPoint() when possible

File:
1 edited

Legend:

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

    r5741 r5764  
    10101010            // fall through to default action.
    10111011            // (for semi-parallel lines, intersection might be miles away!)
    1012             if (Main.map.mapView.getPoint(n).distance(Main.map.mapView.getPoint(intersection)) < snapToIntersectionThreshold) {
     1012            if (Main.map.mapView.getPoint2D(n).distance(Main.map.mapView.getPoint2D(intersection)) < snapToIntersectionThreshold) {
    10131013                n.setEastNorth(intersection);
    10141014                return;
Note: See TracChangeset for help on using the changeset viewer.