Changeset 5012 in josm for trunk/src/org
- Timestamp:
- 2012-02-21T18:04:49+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/MultipolygonTest.java
r4806 r5012 118 118 if (!w.isClosed() && ElemStyles.hasAreaElemStyle(w, false)) { 119 119 List<Node> nodes = w.getNodes(); 120 if (nodes.size()<1) return; // fix zero nodes bug 120 121 errors.add(new TestError(this, Severity.WARNING, tr("Area style way is not closed"), NOT_CLOSED, 121 122 Collections.singletonList(w), Arrays.asList(nodes.get(0), nodes.get(nodes.size() - 1)))); … … 197 198 List<Node> openNodes = new LinkedList<Node>(); 198 199 for (List<Node> w : nonClosedWays) { 200 if (w.size()<1) continue; 199 201 openNodes.add(w.get(0)); 200 202 openNodes.add(w.get(w.size() - 1));
Note:
See TracChangeset
for help on using the changeset viewer.