Ignore:
Timestamp:
2009-12-11T22:39:45+01:00 (14 years ago)
Author:
mjulius
Message:

fixes #4104 - reversing of way does not update direction dependent roles

File:
1 edited

Legend:

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

    r2070 r2611  
    1414import org.openstreetmap.josm.data.osm.OsmPrimitiveType;
    1515import org.openstreetmap.josm.data.osm.Relation;
     16import org.openstreetmap.josm.data.osm.RelationMember;
    1617import org.openstreetmap.josm.gui.DefaultNameFormatter;
    1718import org.openstreetmap.josm.tools.ImageProvider;
     
    4950
    5051        oldRole = relation.getMember(position).getRole();
    51         relation.getMember(position).getRole().equals(newRole);
     52        relation.setMember(position, new RelationMember(newRole, relation.getMember(position).getMember()));
    5253
    5354        oldModified = relation.isModified();
Note: See TracChangeset for help on using the changeset viewer.