Changeset 4337 in josm


Ignore:
Timestamp:
2011-08-26T00:16:03+02:00 (13 years ago)
Author:
stoecker
Message:

duplicate members of relations are now properly selected in relation dialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTableModel.java

    r4223 r4337  
    505505        Set<Integer> selectedIndices = new HashSet<Integer>();
    506506        for (RelationMember member : selectedMembers) {
    507             int idx = members.indexOf(member);
    508             if ( idx >= 0) {
    509                 selectedIndices.add(idx);
     507            for (int idx = 0; idx < members.size(); ++idx) {
     508                if (member.equals(members.get(idx))) {
     509                    selectedIndices.add(idx);
     510                }
    510511            }
    511512        }
Note: See TracChangeset for help on using the changeset viewer.