Changeset 1640 in josm for trunk/src/org/openstreetmap/josm/command/MoveCommand.java
- Timestamp:
- 2009-06-06T14:30:21+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/MoveCommand.java
r1636 r1640 70 70 for (Node n : this.objects) { 71 71 OldState os = new OldState(); 72 os.eastNorth = n. eastNorth;73 os.latlon = n. coor;72 os.eastNorth = n.getEastNorth(); 73 os.latlon = n.getCoor(); 74 74 os.modified = n.modified; 75 75 oldState.add(os); … … 87 87 public void moveAgain(double x, double y) { 88 88 for (Node n : objects) { 89 n.setEastNorth(n. eastNorth.add(x, y));89 n.setEastNorth(n.getEastNorth().add(x, y)); 90 90 } 91 91 this.x += x; … … 95 95 @Override public boolean executeCommand() { 96 96 for (Node n : objects) { 97 n.setEastNorth(n. eastNorth.add(x, y));97 n.setEastNorth(n.getEastNorth().add(x, y)); 98 98 n.modified = true; 99 99 }
Note:
See TracChangeset
for help on using the changeset viewer.