Changeset 17542 in osm for applications/editors/josm/plugins/routes/src/org/openstreetmap
- Timestamp:
- 2009-09-09T00:07:47+02:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/RelationEditMode.java
r16594 r17542 76 76 Relation r = (Relation)rel; 77 77 RelationMember foundMember = null; 78 for (RelationMember member:r. members) {79 if (member. member== way) {78 for (RelationMember member:r.getMembers()) { 79 if (member.getMember() == way) { 80 80 foundMember = member; 81 81 break; … … 87 87 } else { 88 88 Relation newRelation = new Relation(r); 89 newRelation. members.add(new RelationMember("", way));89 newRelation.getMembers().add(new RelationMember("", way)); 90 90 Main.main.undoRedo.add(new ChangeCommand(r, newRelation)); 91 91 } -
applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/RouteLayer.java
r16683 r17542 85 85 86 86 private void addRelation(Relation relation, RouteDefinition route) { 87 for (RelationMember member:relation. members) {88 if (member. memberinstanceof Way) {89 Way way = (Way)member. member;87 for (RelationMember member:relation.getMembers()) { 88 if (member.getMember() instanceof Way) { 89 Way way = (Way)member.getMember(); 90 90 pathBuilder.addWay(way, route); 91 91 }
Note:
See TracChangeset
for help on using the changeset viewer.