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


Ignore:
Timestamp:
2014-12-12T02:18:20+01:00 (10 years ago)
Author:
Don-vip
Message:

see #10825 - always create nodes with coordinates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/OsmUtils.java

    r7356 r7798  
    88import java.util.Map;
    99
     10import org.openstreetmap.josm.data.coor.LatLon;
    1011import org.openstreetmap.josm.tools.CheckParameterUtil;
    1112import org.openstreetmap.josm.tools.TextTagParser;
     
    6566        final String[] x = assertion.split("\\s+", 2);
    6667        final OsmPrimitive p = "n".equals(x[0]) || "node".equals(x[0])
    67                 ? new Node()
     68                ? new Node(LatLon.ZERO)
    6869                : "w".equals(x[0]) || "way".equals(x[0])
    6970                ? new Way()
Note: See TracChangeset for help on using the changeset viewer.