Changeset 12479 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2017-07-16T20:12:45+02:00 (7 years ago)
Author:
Don-vip
Message:

see #14833 - fix DataSet copy constructor, add unit test

File:
1 edited

Legend:

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

    r12329 r12479  
    234234            Collection<Relation> relations = copyFrom.getRelations();
    235235            for (Relation r : relations) {
    236                 Relation newRelation = new Relation(r, r.isNew());
     236                Relation newRelation = new Relation(r);
    237237                newRelation.setMembers(null);
    238238                primMap.put(r, newRelation);
     
    251251            }
    252252            version = copyFrom.version;
     253            uploadPolicy = copyFrom.uploadPolicy;
    253254        } finally {
    254255            copyFrom.getReadLock().unlock();
Note: See TracChangeset for help on using the changeset viewer.