- Timestamp:
- 2013-09-06T22:33:35+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/relations/Multipolygon.java
r6162 r6219 5 5 import java.awt.geom.Path2D.Double; 6 6 import java.awt.geom.PathIterator; 7 import java.awt.geom.Point2D;8 7 import java.awt.geom.Rectangle2D; 9 8 import java.util.ArrayList; … … 297 296 Way w = (Way) ds.getPrimitiveById(wayIds.iterator().next(), OsmPrimitiveType.WAY); 298 297 nodes.addAll(w.getNodes()); 299 } else {298 } else if (!wayIds.isEmpty()) { 300 299 List<Way> waysToJoin = new ArrayList<Way>(); 301 300 for (Long wayId : wayIds) { … … 305 304 } 306 305 } 307 nodes.addAll(joinWays(waysToJoin).iterator().next().getNodes()); 306 if (!waysToJoin.isEmpty()) { 307 nodes.addAll(joinWays(waysToJoin).iterator().next().getNodes()); 308 } 308 309 } 309 310 resetPoly();
Note:
See TracChangeset
for help on using the changeset viewer.