Changeset 36206 in osm


Ignore:
Timestamp:
2024-02-07T09:48:31+01:00 (4 months ago)
Author:
GerdP
Message:

fix #23459: DataIntegrityProblemException after undoing "all" actions and trying to upload

  • add new relation type=turnlanes:lengths in the same way as a new type=turnlanes:turns relation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/turnlanes/src/org/openstreetmap/josm/plugins/turnlanes/model/Road.java

    r35812 r36206  
    127127                if (other == null || !TurnlanesUtils.getMemberNode(other, "end").equals(n)) {
    128128                    target = createLengthsRelation();
     129                    cmd.add(target);
    129130                } else {
    130131                    target = other;
     
    155156                r.addMember(new RelationMember(Constants.LENGTHS_ROLE_WAYS, s.getWay()));
    156157            }
    157 
    158             n.getDataSet().addPrimitive(r);
    159 
    160158            return r;
    161159        }
Note: See TracChangeset for help on using the changeset viewer.