Changeset 5377 in josm


Ignore:
Timestamp:
Jul 28, 2012 8:22:17 PM (10 months ago)
Author:
akks
Message:

patch by JB: Moving 400 ways takes more than 20 seconds, see #7888 (moving with arrows)

File:
1 edited

Legend:

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

    r4982 r5377  
    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); 
     
    121122                    c = new MoveCommand(selection, distx, disty)); 
    122123        } 
    123  
     124        getCurrentDataSet().endUpdate();  
     125         
    124126        for (Node n : affectedNodes) { 
    125127            if (n.getCoor().isOutSideWorld()) { 
Note: See TracChangeset for help on using the changeset viewer.