Changeset 11733 in josm for trunk/src


Ignore:
Timestamp:
2017-03-16T17:07:39+01:00 (7 years ago)
Author:
stoecker
Message:

see #14526 - fix error handling in SequenceCommand

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/SequenceCommand.java

    r10680 r11733  
    7373
    7474    protected final void undoCommands(int start) {
    75         // We probably aborted this halfway though the
    76         // execution sequence because of a sub-command
    77         // error.  We already undid the sub-commands.
    78         if (!sequenceComplete)
    79             return;
    8075        for (int i = start; i >= 0; --i) {
    8176            sequence[i].undoCommand();
     
    8479
    8580    @Override public void undoCommand() {
     81        // We probably aborted this halfway though the
     82        // execution sequence because of a sub-command
     83        // error.  We already undid the sub-commands.
     84        if (!sequenceComplete)
     85            return;
    8686        undoCommands(sequence.length-1);
    8787    }
Note: See TracChangeset for help on using the changeset viewer.