Changeset 15278 in josm


Ignore:
Timestamp:
2019-08-04T22:03:47+02:00 (3 weeks ago)
Author:
Don-vip
Message:

fix #17934 - proper removal of relation members refering to selection

File:
1 edited

Legend:

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

    r15240 r15278  
    1313import java.util.concurrent.CopyOnWriteArrayList;
    1414import java.util.stream.Collectors;
     15import java.util.stream.IntStream;
    1516
    1617import javax.swing.DefaultListSelectionModel;
     
    348349        if (primitives == null)
    349350            return;
    350         if (members.removeIf(member -> primitives.contains(member.getMember())))
    351             fireTableDataChanged();
     351        remove(IntStream.range(0, members.size()).filter(i -> primitives.contains(members.get(i).getMember())).toArray());
    352352    }
    353353
Note: See TracChangeset for help on using the changeset viewer.