Changeset 14964 in josm


Ignore:
Timestamp:
2019-04-06T19:39:05+02:00 (8 months ago)
Author:
Don-vip
Message:

see #13538 - avoid creation of intermediate Node objects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/Node.java

    r14960 r14964  
    414414            if (ll.isOutSideWorld())
    415415                return true;
    416             if (!new Node(ll).getEastNorth().equalsEpsilon(getEastNorth(), 1.0)) {
     416            if (!ProjectionRegistry.getProjection().latlon2eastNorth(ll).equalsEpsilon(getEastNorth(), 1.0)) {
    417417                // we get here if a node was moved or created left from -180 or right from +180
    418418                return true;
Note: See TracChangeset for help on using the changeset viewer.