Ignore:
Timestamp:
2009-09-09T00:07:47+02:00 (15 years ago)
Author:
guggis
Message:

Updating to JOSM r2082

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  
    7676                        Relation r = (Relation)rel;
    7777                        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) {
    8080                                        foundMember = member;
    8181                                        break;
     
    8787                        } else {
    8888                                Relation newRelation = new Relation(r);
    89                                 newRelation.members.add(new RelationMember("", way));
     89                                newRelation.getMembers().add(new RelationMember("", way));
    9090                    Main.main.undoRedo.add(new ChangeCommand(r, newRelation));
    9191                        }
  • applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/RouteLayer.java

    r16683 r17542  
    8585
    8686        private void addRelation(Relation relation, RouteDefinition route) {
    87                 for (RelationMember member:relation.members) {
    88                         if (member.member instanceof 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();
    9090                                pathBuilder.addWay(way, route);
    9191                        }
Note: See TracChangeset for help on using the changeset viewer.