Ignore:
Timestamp:
2009-08-08T09:22:24+02:00 (15 years ago)
Author:
jttt
Message:

Replaced Relation.members with Relation.getMember() or Relation.getMembersCount()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/ChangeRelationMemberRoleCommand.java

    r1814 r1926  
    4343
    4444    @Override public boolean executeCommand() {
    45         if (position < 0 || position >= relation.members.size()) {
     45        if (position < 0 || position >= relation.getMembersCount()) {
    4646            Main.debug("error changing the role");
    4747            return false;
    4848        }
    4949
    50         oldRole = relation.members.get(position).role;
    51         relation.members.get(position).role = newRole;
     50        oldRole = relation.getMember(position).role;
     51        relation.getMember(position).role = newRole;
    5252
    5353        oldModified = relation.modified;
     
    5757
    5858    @Override public void undoCommand() {
    59         relation.members.get(position).role = oldRole;
     59        relation.getMember(position).role = oldRole;
    6060        relation.modified = oldModified;
    6161    }
Note: See TracChangeset for help on using the changeset viewer.