Changeset 467 in josm


Ignore:
Timestamp:
Nov 18, 2007 7:39:14 PM (6 years ago)
Author:
gebner
Message:

NameVisitor: handle incomplete nodes

File:
1 edited

Legend:

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

    r384 r467  
    5151        public void visit(Node n) { 
    5252                name = n.get("name"); 
    53                 if (name == null) 
    54                         name = (n.id==0?"":""+n.id)+" ("+latLonFormat.format(n.coor.lat())+", "+latLonFormat.format(n.coor.lon())+")"; 
     53                if (name == null) { 
     54                        if (n.incomplete) { 
     55                                name = "incomplete" + (n.id==0?"":" "+n.id); 
     56                        } else { 
     57                                name = (n.id==0?"":""+n.id)+" ("+latLonFormat.format(n.coor.lat())+", "+latLonFormat.format(n.coor.lon())+")"; 
     58                        } 
     59                } 
    5560                addId(n); 
    5661                icon = ImageProvider.get("data", "node"); 
Note: See TracChangeset for help on using the changeset viewer.