Changeset 1640 in josm for trunk/src/org/openstreetmap/josm/command
- Timestamp:
- 2009-06-06T14:30:21+02:00 (16 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/command
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/DeleteCommand.java
r1499 r1640 340 340 if (osm instanceof Node && osm.id != 0) { 341 341 Node n = (Node) osm; 342 if (!a.contains(n. coor)) {342 if (!a.contains(n.getCoor())) { 343 343 JPanel msg = new JPanel(new GridBagLayout()); 344 344 msg.add(new JLabel( -
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 } -
trunk/src/org/openstreetmap/josm/command/RotateCommand.java
r1636 r1640 64 64 for (Node n : this.objects) { 65 65 MoveCommand.OldState os = new MoveCommand.OldState(); 66 os.eastNorth = n. eastNorth;67 os.latlon = n. coor;66 os.eastNorth = n.getEastNorth(); 67 os.latlon = n.getCoor(); 68 68 os.modified = n.modified; 69 69 oldState.put(n, os);
Note:
See TracChangeset
for help on using the changeset viewer.