Changeset 668 in josm for trunk/src/org
- Timestamp:
- 2008-06-28T01:05:49+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/SplitWayAction.java
r655 r668 29 29 import org.openstreetmap.josm.data.osm.OsmPrimitive; 30 30 import org.openstreetmap.josm.data.osm.Relation; 31 import org.openstreetmap.josm.data.osm.RelationMember; 31 32 import org.openstreetmap.josm.data.osm.Way; 32 33 import org.openstreetmap.josm.data.osm.visitor.NameVisitor; … … 243 244 Main.debug("wayToAdd: " + wayToAdd); 244 245 newSelection.add(wayToAdd); 246 247 // now copy all relations to new way also 248 for (Relation r : Main.ds.relations) { 249 if (r.deleted || r.incomplete) continue; 250 for (RelationMember rm : r.members) { 251 if (rm.member instanceof Way) { 252 if (rm.member == selectedWay) 253 { 254 Relation c = new Relation(r); 255 RelationMember em = new RelationMember(); 256 em.member = wayToAdd; 257 em.role = rm.role; 258 c.members.add(em); 259 commandList.add(new ChangeCommand(r, c)); 260 } 261 } 262 } 263 } 245 264 } 246 265
Note:
See TracChangeset
for help on using the changeset viewer.