Ignore:
Timestamp:
2009-11-07T12:53:31+01:00 (15 years ago)
Author:
jttt
Message:

Make sure incomplete relation member is not added twice into the dataset

File:
1 edited

Legend:

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

    r2396 r2398  
    518518                    }
    519519                    ds.addPrimitive(primitive);
     520
     521                    if (rm.type.equals("node")) {
     522                        externalIdMap.put("n" + rm.id, primitive);
     523                    } else if (rm.type.equals("way")) {
     524                        externalIdMap.put("w" + rm.id, primitive);
     525                    } else if (rm.type.equals("relation")) {
     526                        externalIdMap.put("r" + rm.id, primitive);
     527                    }
     528
    520529                }
    521530                relationMembers.add(new RelationMember(rm.role, primitive));
Note: See TracChangeset for help on using the changeset viewer.