Changeset 5716 in josm for trunk


Ignore:
Timestamp:
2013-02-13T19:55:07+01:00 (7 years ago)
Author:
Don-vip
Message:

fix #8403 - make limit customizable in advanced preferences

File:
1 edited

Legend:

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

    r5713 r5716  
    594594            // Compute total length of selected way(s) until an arbitrary limit set to 250 ways
    595595            // in order to prevent performance issue if a large number of ways are selected (old behaviour kept in that case, see #8403)
    596             if (!ways.isEmpty() && ways.size() < 250) {
     596            int maxWays = Math.max(1, Main.pref.getInteger("selection.max-ways-for-statusline", 250));
     597            if (!ways.isEmpty() && ways.size() <= maxWays) {
    597598                for (Way w : ways) {
    598599                    dist += w.getLength();
Note: See TracChangeset for help on using the changeset viewer.