Changeset 379 in josm for trunk/src


Ignore:
Timestamp:
2007-10-13T16:57:07+02:00 (17 years ago)
Author:
gebner
Message:

Don't write incomplete primitives to OSM files.

File:
1 edited

Legend:

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

    r364 r379  
    126126
    127127        public void visit(Node n) {
     128                if (n.incomplete) return;
    128129                addCommon(n, "node");
    129130                out.print(" lat='"+n.coor.lat()+"' lon='"+n.coor.lon()+"'");
     
    132133
    133134        public void visit(Way w) {
     135                if (n.incomplete) return;
    134136                addCommon(w, "way");
    135137                out.println(">");
     
    140142
    141143        public void visit(Relation e) {
     144                if (n.incomplete) return;
    142145                addCommon(e, "relation");
    143146                out.println(">");
Note: See TracChangeset for help on using the changeset viewer.