Changeset 13258 in josm


Ignore:
Timestamp:
2017-12-29T15:05:22+01:00 (3 weeks ago)
Author:
Don-vip
Message:

fix #15704 - Keep order of tags added by 'addtags=' query parameter (patch by skorbut)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/AddTagsDialog.java

    r13253 r13258  
    1414import java.util.HashMap;
    1515import java.util.HashSet;
     16import java.util.LinkedHashSet;
    1617import java.util.Map;
    1718import java.util.Map.Entry;
     
    278279        if (args.containsKey("addtags")) {
    279280            GuiHelper.executeByMainWorkerInEDT(() -> {
    280                 Set<String> tagSet = new HashSet<>();
     281                Set<String> tagSet = new LinkedHashSet<>(); // preserve order, see #15704
    281282                for (String tag1 : args.get("addtags").split("\\|")) {
    282283                    if (!tag1.trim().isEmpty() && tag1.contains("=")) {
Note: See TracChangeset for help on using the changeset viewer.