- Timestamp:
- 2013-06-08T12:51:41+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/Changeset.java
r5890 r5996 48 48 */ 49 49 public Changeset() { 50 this.id = 0; 51 this.tags = new HashMap<String, String>(); 50 this(0); 52 51 } 53 52 -
trunk/src/org/openstreetmap/josm/io/OsmReader.java
r5881 r5996 320 320 321 321 private void parseChangeset(Long uploadChangesetId) throws XMLStreamException { 322 long id = getLong("id"); 323 324 if (id == uploadChangesetId) { 325 uploadChangeset = new Changeset((int) getLong("id")); 322 323 Long id = null; 324 if (parser.getAttributeValue(null, "id") != null) { 325 id = getLong("id"); 326 } 327 // Read changeset info if neither upload-changeset nor id are set, or if they are both set to the same value 328 if (id == uploadChangesetId || (id != null && id.equals(uploadChangesetId))) { 329 uploadChangeset = new Changeset(id != null ? id.intValue() : 0); 326 330 while (true) { 327 331 int event = parser.next();
Note:
See TracChangeset
for help on using the changeset viewer.