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


Ignore:
Timestamp:
2009-11-02T19:11:05+01:00 (15 years ago)
Author:
Gubaer
Message:

applied #3786: patch by Daeron: JOSM doesn't count duplicate nodes in ways in node count

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/DefaultNameFormatter.java

    r2273 r2385  
    132132            }
    133133
    134             int nodesNo = new HashSet<Node>(way.getNodes()).size();
     134            int nodesNo = way.getNodesCount();
    135135            String nodes = trn("{0} node", "{0} nodes", nodesNo, nodesNo);
    136136            name += (name.length() > 0) ? " ("+nodes+")" : nodes;
Note: See TracChangeset for help on using the changeset viewer.