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


Ignore:
Timestamp:
2011-01-18T17:50:59+01:00 (13 years ago)
Author:
Upliner
Message:

fix loading of invisible objects which was broken in [3731]

File:
1 edited

Legend:

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

    r3479 r3791  
    169169                    readCommon(atts, nd);
    170170                    Node n = new Node(nd.getId(), nd.getVersion());
     171                    n.setVisible(nd.isVisible());
    171172                    n.load(nd);
    172173                    externalIdMap.put(nd.getPrimitiveId(), n);
     
    177178                    readCommon(atts, wd);
    178179                    Way w = new Way(wd.getId(), wd.getVersion());
     180                    w.setVisible(wd.isVisible());
    179181                    w.load(wd);
    180182                    externalIdMap.put(wd.getPrimitiveId(), w);
     
    212214                    readCommon(atts, rd);
    213215                    Relation r = new Relation(rd.getId(), rd.getVersion());
     216                    r.setVisible(rd.isVisible());
    214217                    r.load(rd);
    215218                    externalIdMap.put(rd.getPrimitiveId(), r);
Note: See TracChangeset for help on using the changeset viewer.