Ignore:
Timestamp:
2019-01-14T07:00:19+01:00 (6 years ago)
Author:
gerdp
Message:

fix #12657 Split area (Alt+X) is too restrictive

Probably a simple typo (<= instead of <)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/actions/SplitObjectAction.java

    r34816 r34824  
    9797                        continue;
    9898                    }
    99                     int last = w.getNodesCount() - 1;
    100                     // Only closed ways with at least four nodes
     99                    // Only closed ways with at least four distinct nodes
    101100                    // (i.e. five members since the first/last is listed twice)
    102101                    // can be split into two objects
    103                     if (last <= 4 || !w.isClosed()) {
     102                    if (w.getNodesCount() < 5 || !w.isClosed()) {
    104103                        continue;
    105104                    }
Note: See TracChangeset for help on using the changeset viewer.