Changeset 20573 in osm for applications/editors


Ignore:
Timestamp:
2010-03-21T11:30:36+01:00 (14 years ago)
Author:
jttt
Message:

Fix ArrayIndexOutOfBounds exception in case multipolygon contains 2 node way

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/MultipolygonTest.java

    r20365 r20573  
    5151            if (!jw.isClosed()) {
    5252                nonClosedWays.add(jw.getNodes());
     53            } else {
     54                result.add(jw.getNodes());
    5355            }
    54             result.add(jw.getNodes());
    5556        }
    5657        return result;
     
    7071        List<GeneralPath> result = new ArrayList<GeneralPath>();
    7172        for (List<Node> way: joinedWays) {
    72             if (way.size() >= 3) {
    73                 result.add(createPath(way));
    74             }
     73            result.add(createPath(way));
    7574        }
    7675        return result;
Note: See TracChangeset for help on using the changeset viewer.