Changeset 5806 in josm for trunk


Ignore:
Timestamp:
2013-03-28T12:49:59+01:00 (7 years ago)
Author:
Don-vip
Message:

fix #8547 for good

File:
1 edited

Legend:

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

    r5805 r5806  
    565565            fireContentsChanged(this, 0, getSize());
    566566            remember(selection);
    567             double dist = 0.0;
     567            double dist = -1;
    568568            SubclassFilteredCollection<OsmPrimitive, Way> ways = new SubclassFilteredCollection<OsmPrimitive, Way>(selection, OsmPrimitive.wayPredicate);
    569569            // Compute total length of selected way(s) until an arbitrary limit set to 250 ways
     
    571571            int maxWays = Math.max(1, Main.pref.getInteger("selection.max-ways-for-statusline", 250));
    572572            if (!ways.isEmpty() && ways.size() <= maxWays) {
     573                dist = 0.0;
    573574                for (Way w : ways) {
    574575                    dist += w.getLength();
Note: See TracChangeset for help on using the changeset viewer.