Ignore:
Timestamp:
2008-05-12T10:14:29+02:00 (16 years ago)
Author:
framm
Message:
  • more api0.6 stuff from kleptog
File:
1 edited

Legend:

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

    r627 r633  
    8585                        osm.user = user;
    8686                        osm.visible = visible;
     87                        osm.version = version;
    8788                        osm.checkTagged();
    8889                        osm.checkDirectionTagged();
     
    249250                if (visible != null) {
    250251                        current.visible = Boolean.parseBoolean(visible);
     252                }
     253
     254                // oldversion attribute added in 0.6 API
     255
     256                // Note there is an asymmetry here: the server will send
     257                // the version as "version" the client sends it as
     258                // "oldversion". So we take both since which we receive will
     259                // depend on reading from a file or reading from the server
     260
     261                String version = atts.getValue("version");
     262                if (version != null) {
     263                        current.version = Integer.parseInt(version);
     264                }
     265                version = atts.getValue("old_version");
     266                if (version != null) {
     267                        current.version = Integer.parseInt(version);
    251268                }
    252269
Note: See TracChangeset for help on using the changeset viewer.