Ignore:
Timestamp:
2012-12-26T14:48:29+01:00 (12 years ago)
Author:
donvip
Message:

[josm_utilsplugin2] fix #josm8237 - split object throws IOOBE

File:
1 edited

Legend:

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

    r28556 r29121  
    7676        Way splitWay = null;
    7777
    78         if (selectedNodes.isEmpty()) {              // if no nodes are selected - try to find split way
     78        if (selectedNodes.size() != 2) {            // if not exactly 2 nodes are selected - try to find split way
     79            selectedNodes.clear();                  // empty selected nodes (see #8237)
    7980            for (Way selWay : selectedWays) {       // we assume not more 2 ways in the list
    8081                if (selWay != null &&               // If one of selected ways is not closed we have it to get split points
Note: See TracChangeset for help on using the changeset viewer.