Ignore:
Timestamp:
2019-04-04T11:34:48+02:00 (5 years ago)
Author:
GerdP
Message:

see #13538:

  • Add new method isOutSideWorld() to class Node and use the method where LatLon.isOutSideWorld() was used before
  • Add a check in MoveNodeAction to make sure that rounding errors near 180 longitude don't move the node from east to west or vice versa

(I've removed the changes to reactions implemented in 13538-v2.patch, they would be too confusing.)

TODO: Plugins should use the new method in Node

File:
1 edited

Legend:

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

    r14397 r14960  
    152152
    153153        for (Node n : affectedNodes) {
    154             if (n.isLatLonKnown() && n.getCoor().isOutSideWorld()) {
     154            if (n.isLatLonKnown() && n.isOutSideWorld()) {
    155155                // Revert move
    156156                ((MoveCommand) c).moveAgain(-distx, -disty);
Note: See TracChangeset for help on using the changeset viewer.