Changeset 2939 in josm for trunk


Ignore:
Timestamp:
2010-02-04T22:04:33+01:00 (15 years ago)
Author:
jttt
Message:

Do not add deleted nodes/members to loaded way/relation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmReader.java

    r2937 r2939  
    432432                if (n.isDeleted()) {
    433433                    logger.warning(tr("Deleted node {0} is part of way {1}", id, w.getId()));
    434                 }
    435                 wayNodes.add(n);
     434                } else {
     435                    wayNodes.add(n);
     436                }
    436437            }
    437438            w.setNodes(wayNodes);
     
    510511                if (primitive.isDeleted()) {
    511512                    logger.warning(tr("Deleted member {0} is used by relation {1}", primitive.getId(), relation.getId()));
    512                 }
    513                 relationMembers.add(new RelationMember(rm.role, primitive));
     513                } else {
     514                    relationMembers.add(new RelationMember(rm.role, primitive));
     515                }
    514516            }
    515517            relation.setMembers(relationMembers);
Note: See TracChangeset for help on using the changeset viewer.