Changeset 2611 in josm
- Timestamp:
- 2009-12-11T22:39:45+01:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/ChangeRelationMemberRoleCommand.java
r2070 r2611 14 14 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; 15 15 import org.openstreetmap.josm.data.osm.Relation; 16 import org.openstreetmap.josm.data.osm.RelationMember; 16 17 import org.openstreetmap.josm.gui.DefaultNameFormatter; 17 18 import org.openstreetmap.josm.tools.ImageProvider; … … 49 50 50 51 oldRole = relation.getMember(position).getRole(); 51 relation. getMember(position).getRole().equals(newRole);52 relation.setMember(position, new RelationMember(newRole, relation.getMember(position).getMember())); 52 53 53 54 oldModified = relation.isModified(); -
trunk/src/org/openstreetmap/josm/corrector/ReverseWayTagCorrector.java
r2573 r2611 12 12 import java.util.regex.Pattern; 13 13 14 import org.openstreetmap.josm.Main;15 14 import org.openstreetmap.josm.command.Command; 16 15 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 142 141 roleCorrectionMap.put(way, new ArrayList<RoleCorrection>()); 143 142 144 for (Relation relation : Main.main.getCurrentDataSet().getRelations()) { 143 Collection<OsmPrimitive> referrers = oldway.getReferrers(); 144 for (OsmPrimitive referrer: referrers) { 145 if (! (referrer instanceof Relation)) { 146 continue; 147 } 148 Relation relation = (Relation)referrer; 145 149 int position = 0; 146 150 for (RelationMember member : relation.getMembers()) {
Note:
See TracChangeset
for help on using the changeset viewer.