Ticket #4517: diff.patch

File diff.patch, 821 bytes (added by PetrDlouhy, 16 years ago)
  • src/org/openstreetmap/josm/data/UndoRedoHandler.java

     
    5454    /**
    5555     * Execute the command and add it to the intern command queue.
    5656     */
    57     public void add(final Command c) {
     57    synchronized public void add(final Command c) {
    5858        addNoRedraw(c);
    5959        afterAdd();
    6060    }
     
    6262    /**
    6363     * Undoes the last added command.
    6464     */
    65     public void undo() {
     65    synchronized public void undo() {
    6666        if (commands.isEmpty())
    6767            return;
    6868        Collection<? extends OsmPrimitive> oldSelection = Main.main.getCurrentDataSet().getSelected();