Ticket #21764: 21764.patch

File 21764.patch, 773 bytes (added by taylor.smock, 4 years ago)
  • src/org/openstreetmap/josm/plugins/alignways/AlignWaysCmdKeepLength.java

     
    256256
    257257        // Deny action if the nodes would end up outside world
    258258        for (EastNorth en : calculatedNodes.values()) {
    259             if (ProjectionRegistry.getProjection().eastNorth2latlon(en).isOutSideWorld())
     259            if (new Node(en).isOutSideWorld()) {
    260260                return AlignableStatus.ALGN_INV_OUTSIDE_WORLD;
     261            }
    261262        }
    262263
    263264        // In all other cases alignment is possible