Changeset 2436 in josm


Ignore:
Timestamp:
2009-11-10T22:22:36+01:00 (15 years ago)
Author:
Gubaer
Message:

Improved counting of nodes in DefaultNameFormatter

File:
1 edited

Legend:

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

    r2385 r2436  
    133133
    134134            int nodesNo = way.getNodesCount();
     135            if (nodesNo > 1 && way.isClosed()) {
     136                nodesNo--;
     137            }
    135138            String nodes = trn("{0} node", "{0} nodes", nodesNo, nodesNo);
    136139            name += (name.length() > 0) ? " ("+nodes+")" : nodes;
Note: See TracChangeset for help on using the changeset viewer.