Ignore:
Timestamp:
2009-06-06T14:30:21+02:00 (15 years ago)
Author:
stoecker
Message:

little bit more refactoring of coordinate access - patch by jttt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/MoveCommand.java

    r1636 r1640  
    7070        for (Node n : this.objects) {
    7171            OldState os = new OldState();
    72             os.eastNorth = n.eastNorth;
    73             os.latlon = n.coor;
     72            os.eastNorth = n.getEastNorth();
     73            os.latlon = n.getCoor();
    7474            os.modified = n.modified;
    7575            oldState.add(os);
     
    8787    public void moveAgain(double x, double y) {
    8888        for (Node n : objects) {
    89             n.setEastNorth(n.eastNorth.add(x, y));
     89            n.setEastNorth(n.getEastNorth().add(x, y));
    9090        }
    9191        this.x += x;
     
    9595    @Override public boolean executeCommand() {
    9696        for (Node n : objects) {
    97             n.setEastNorth(n.eastNorth.add(x, y));
     97            n.setEastNorth(n.getEastNorth().add(x, y));
    9898            n.modified = true;
    9999        }
Note: See TracChangeset for help on using the changeset viewer.