Ignore:
Timestamp:
2015-10-13T22:09:50+02:00 (9 years ago)
Author:
simon04
Message:

JOSM/reverter: Use the same layer when reverting multiple changesets - fixes #josm11948

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/reverter/src/reverter/RevertChangesetAction.java

    r31596 r31625  
    3232        if (revertType == null) return;
    3333
    34         final boolean newLayer = dlg.isNewLayerRequired();
     34        boolean newLayer = dlg.isNewLayerRequired();
    3535        final boolean autoConfirmDownload = newLayer || changesetIds.size() > 1;
    3636        for (Integer changesetId : changesetIds) {
    3737            Main.worker.submit(new RevertChangesetTask(changesetId, revertType, autoConfirmDownload, newLayer));
     38            newLayer = false; // reuse layer for subsequent reverts
    3839        }
    3940    }
Note: See TracChangeset for help on using the changeset viewer.