Changeset 9442 in josm for trunk/src


Ignore:
Timestamp:
2016-01-14T17:46:39+01:00 (4 years ago)
Author:
simon04
Message:

fix #12347 - Split way breaks destination_sign relations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/SplitWayAction.java

    r9245 r9442  
    610610                if (rm.isWay() && rm.getMember() == way) {
    611611                    boolean insert = true;
    612                     if ("restriction".equals(type)) {
     612                    if ("restriction".equals(type) || "destination_sign".equals(type)) {
    613613                        /* this code assumes the restriction is correct. No real error checking done */
    614614                        String role = rm.getRole();
     
    616616                            OsmPrimitive via = null;
    617617                            for (RelationMember rmv : r.getMembers()) {
    618                                 if ("via".equals(rmv.getRole())) {
     618                                if ("restriction".equals(type) && "via".equals(rmv.getRole())
     619                                        || "destination_sign".equals(type) && "sign".equals(rmv.getRole())) {
    619620                                    via = rmv.getMember();
    620621                                }
Note: See TracChangeset for help on using the changeset viewer.