Ticket #17904: 17904.patch

File 17904.patch, 599 bytes (added by taylor.smock, 7 years ago)

Fix NPE and correctly highlight the previously selected objects when using the "Move the currently selected members" buttons. It does not work with drag and drop. (Not a regression from current code).

  • src/org/openstreetmap/josm/gui/dialogs/relation/MemberTableModel.java

     
    279279        selectionModel.clearSelection();
    280280        BitSet selected = new BitSet();
    281281        for (int row : selectedRows) {
    282             row--;
     282            row += delta;
    283283            selected.set(row);
    284284        }
    285285        addToSelectedMembers(selected);