- Timestamp:
- 2013-03-28T12:49:59+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java
r5805 r5806 565 565 fireContentsChanged(this, 0, getSize()); 566 566 remember(selection); 567 double dist = 0.0;567 double dist = -1; 568 568 SubclassFilteredCollection<OsmPrimitive, Way> ways = new SubclassFilteredCollection<OsmPrimitive, Way>(selection, OsmPrimitive.wayPredicate); 569 569 // Compute total length of selected way(s) until an arbitrary limit set to 250 ways … … 571 571 int maxWays = Math.max(1, Main.pref.getInteger("selection.max-ways-for-statusline", 250)); 572 572 if (!ways.isEmpty() && ways.size() <= maxWays) { 573 dist = 0.0; 573 574 for (Way w : ways) { 574 575 dist += w.getLength();
Note:
See TracChangeset
for help on using the changeset viewer.