Changeset 9948 in josm


Ignore:
Timestamp:
2016-03-07T20:40:03+01:00 (4 years ago)
Author:
simon04
Message:

fix #12600 - Orthogonalize: fix ArrayIndexOutOfBoundsException

Regression from r9925.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java

    r9925 r9948  
    185185            }
    186186        }
    187         if (wayDataList.isEmpty() && !nodeList.isEmpty()) {
     187        if (wayDataList.isEmpty() && nodeList.size() > 2) {
    188188            final WayData data = new WayData(nodeList);
    189189            final Collection<Command> commands = orthogonalize(Collections.singletonList(data), Collections.<Node>emptyList());
Note: See TracChangeset for help on using the changeset viewer.