Changeset 3682 in josm for trunk/src/org


Ignore:
Timestamp:
2010-11-29T17:47:27+01:00 (13 years ago)
Author:
bastiK
Message:

fixed #5670 - Nodes are not marked dirty when moved with area tool (ctrl-drag)

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

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

    r3650 r3682  
    277277                } else {
    278278                    //reuse existing move command
    279                     moveCommand.undoCommand();
    280                     moveCommand.moveAgain(bestMovement.getX(), bestMovement.getY());
     279                    moveCommand.moveAgainTo(bestMovement.getX(), bestMovement.getY());
    281280                }
    282281            }
  • trunk/src/org/openstreetmap/josm/command/MoveCommand.java

    r3266 r3682  
    9898    }
    9999
     100    public void moveAgainTo(double x, double y) {
     101        moveAgain(x - this.x, y - this.y);
     102    }
     103
    100104    @Override public boolean executeCommand() {
    101105        for (Node n : nodes) {
Note: See TracChangeset for help on using the changeset viewer.