Changeset 14045 in josm for trunk/src/org


Ignore:
Timestamp:
2018-07-22T23:14:35+02:00 (6 years ago)
Author:
Don-vip
Message:

fix #16509 - preserve order of selected objects when using "select members" action

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/relation/SelectMembersAction.java

    r13957 r14045  
    55
    66import java.awt.event.ActionEvent;
    7 import java.util.HashSet;
     7import java.util.LinkedHashSet;
    88import java.util.Set;
    99
     
    3838        if (!isEnabled() || relations.isEmpty() || !MainApplication.isDisplayingMapView()) return;
    3939
    40         Set<IPrimitive> members = new HashSet<>();
     40        Set<IPrimitive> members = new LinkedHashSet<>();
    4141        for (IRelation<?> r: relations) {
    4242            members.addAll(r.getMemberPrimitivesList());
Note: See TracChangeset for help on using the changeset viewer.