Ticket #5341: 5341-nudge-performance.patch
| File 5341-nudge-performance.patch, 891 bytes (added by , 14 years ago) |
|---|
-
src/org/openstreetmap/josm/actions/MoveAction.java
114 114 Command c = !Main.main.undoRedo.commands.isEmpty() 115 115 ? Main.main.undoRedo.commands.getLast() : null; 116 116 117 getCurrentDataSet().beginUpdate(); 117 118 if (c instanceof MoveCommand && affectedNodes.equals(((MoveCommand)c).getParticipatingPrimitives())) { 118 119 ((MoveCommand)c).moveAgain(distx, disty); 119 120 } else { 120 121 Main.main.undoRedo.add( 121 122 c = new MoveCommand(selection, distx, disty)); 122 123 } 124 getCurrentDataSet().endUpdate(); 123 125 124 126 for (Node n : affectedNodes) { 125 127 if (n.getCoor().isOutSideWorld()) {
