Changeset 10683 in josm


Ignore:
Timestamp:
2016-07-31T12:33:04+02:00 (8 years ago)
Author:
Don-vip
Message:

fix #13250 - JOSM seems to hang after sorting members of a complex relation (patch by gpetermann_muenchen)

File:
1 edited

Legend:

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

    r10613 r10683  
    77import java.awt.GraphicsEnvironment;
    88import java.awt.event.ActionEvent;
    9 import java.util.ArrayList;
    109import java.util.Arrays;
    1110import java.util.Collection;
    12 import java.util.List;
     11import java.util.HashSet;
     12import java.util.Set;
    1313
    1414import javax.swing.AbstractAction;
     
    110110        if (Main.isDisplayingMapView()) {
    111111            Collection<RelationMember> sel = getMemberTableModel().getSelectedMembers();
    112             final List<OsmPrimitive> toHighlight = new ArrayList<>();
     112            final Set<OsmPrimitive> toHighlight = new HashSet<>();
    113113            for (RelationMember r: sel) {
    114114                if (r.getMember().isUsable()) {
Note: See TracChangeset for help on using the changeset viewer.