Changeset 3008 in josm for trunk/src/org


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

Fix fix for #4539

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/DataSet.java

    r2998 r3008  
    578578        // and then get the cloned members
    579579        for (Relation r : relations) {
    580             Relation newRelation = new Relation(r);
     580            Relation newRelation = new Relation(r, r.isNew());
     581            newRelation.setMembers(null);
    581582            primitivesMap.put(r, newRelation);
     583            ds.addPrimitive(newRelation);
    582584        }
    583585        for (Relation r : relations) {
     
    588590            }
    589591            newRelation.setMembers(newMembers);
    590             ds.addPrimitive(newRelation);
    591592        }
    592593        for (DataSource source : dataSources) {
Note: See TracChangeset for help on using the changeset viewer.