Changeset 12721 in josm for trunk/src


Ignore:
Timestamp:
2017-09-04T02:45:09+02:00 (7 years ago)
Author:
Don-vip
Message:

see #13036 - Do not call default Command() constructor from SequenceCommand(), as it requires Main.main to be set, which is not the case in Taginfo groovy script

File:
1 edited

Legend:

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

    r12718 r12721  
    3434     * Create the command by specifying the list of commands to execute.
    3535     * @param name The description text
    36      * @param sequenz The sequence that should be executed
     36     * @param sequenz The sequence that should be executed. Must not be null or empty
    3737     * @param continueOnError Determines if the sequence execution should continue after one of its commands fails
    3838     * @since 11874
    3939     */
    4040    public SequenceCommand(String name, Collection<Command> sequenz, boolean continueOnError) {
     41        super(sequenz.iterator().next().getAffectedDataSet());
    4142        this.name = name;
    4243        this.sequence = sequenz.toArray(new Command[sequenz.size()]);
Note: See TracChangeset for help on using the changeset viewer.