Ticket #5341: 5341-nudge-performance.patch

File 5341-nudge-performance.patch, 891 bytes (added by JB, 14 years ago)
  • src/org/openstreetmap/josm/actions/MoveAction.java

     
    114114        Command c = !Main.main.undoRedo.commands.isEmpty()
    115115        ? Main.main.undoRedo.commands.getLast() : null;
    116116
     117        getCurrentDataSet().beginUpdate();
    117118        if (c instanceof MoveCommand && affectedNodes.equals(((MoveCommand)c).getParticipatingPrimitives())) {
    118119            ((MoveCommand)c).moveAgain(distx, disty);
    119120        } else {
    120121            Main.main.undoRedo.add(
    121122                    c = new MoveCommand(selection, distx, disty));
    122123        }
     124        getCurrentDataSet().endUpdate();
    123125
    124126        for (Node n : affectedNodes) {
    125127            if (n.getCoor().isOutSideWorld()) {