Changeset 1587 in josm for trunk


Ignore:
Timestamp:
2009-05-12T16:49:45+02:00 (15 years ago)
Author:
stoecker
Message:

fixed #2420 - patch by Gubaer - Saved OSM file can contain empty API version

File:
1 edited

Legend:

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

    r1524 r1587  
    2424public class OsmWriter extends XmlWriter implements Visitor {
    2525
     26    public final String DEFAULT_API_VERSION = "0.6";
     27   
    2628    /**
    2729     * The counter for newly created objects. Starts at -1 and goes down.
     
    4345        super(out);
    4446        this.osmConform = osmConform;
    45         this.version = version;
     47        this.version = (version == null ? DEFAULT_API_VERSION : version);
    4648    }
    4749   
Note: See TracChangeset for help on using the changeset viewer.