Changeset 2375 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2009-11-01T17:23:35+01:00 (15 years ago)
Author:
bastiK
Message:

fixed #3827: Setting a role to a relation member is broken (introduced with r2365)

File:
1 edited

Legend:

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

    r2365 r2375  
    107107    public boolean isCellEditable(int rowIndex, int columnIndex) {
    108108        return columnIndex == 0;
     109    }
     110
     111    @Override
     112    public void setValueAt(Object value, int rowIndex, int columnIndex) {
     113        RelationMember member = members.get(rowIndex);
     114        RelationMember newMember = new RelationMember(value.toString(), member.getMember());
     115        members.remove(rowIndex);
     116        members.add(rowIndex, newMember);
    109117    }
    110118
Note: See TracChangeset for help on using the changeset viewer.