Ticket #13538: 13538.patch
File 13538.patch, 1.2 KB (added by , 6 years ago) |
---|
-
src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
39 39 import org.openstreetmap.josm.data.Bounds; 40 40 import org.openstreetmap.josm.data.UndoRedoHandler; 41 41 import org.openstreetmap.josm.data.coor.EastNorth; 42 import org.openstreetmap.josm.data.coor.LatLon; 42 43 import org.openstreetmap.josm.data.osm.DataSelectionListener; 43 44 import org.openstreetmap.josm.data.osm.DataSet; 44 45 import org.openstreetmap.josm.data.osm.Node; … … 529 530 List<Way> replacedWays = new ArrayList<>(); 530 531 531 532 if (newNode) { 532 if (n.getCoor().isOutSideWorld()) { 533 // see #13538: 534 Node verify = new Node(new LatLon(n.getCoor().lat(), n.getCoor().lon())); 535 if (n.getCoor().isOutSideWorld() || !verify.getEastNorth().equalsEpsilon(n.getEastNorth(), 1.0)) { 533 536 JOptionPane.showMessageDialog( 534 537 MainApplication.getMainFrame(), 535 538 tr("Cannot add a node outside of the world."),