Ticket #4517: diff.patch
| File diff.patch, 821 bytes (added by , 16 years ago) |
|---|
-
src/org/openstreetmap/josm/data/UndoRedoHandler.java
54 54 /** 55 55 * Execute the command and add it to the intern command queue. 56 56 */ 57 public void add(final Command c) {57 synchronized public void add(final Command c) { 58 58 addNoRedraw(c); 59 59 afterAdd(); 60 60 } … … 62 62 /** 63 63 * Undoes the last added command. 64 64 */ 65 public void undo() {65 synchronized public void undo() { 66 66 if (commands.isEmpty()) 67 67 return; 68 68 Collection<? extends OsmPrimitive> oldSelection = Main.main.getCurrentDataSet().getSelected();
