Changeset 10308 in josm for trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java
- Timestamp:
- 2016-06-01T23:17:40+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java
r10174 r10308 775 775 * @param isInner - if true, reverts the direction (for multipolygon islands) 776 776 * @return list of parts, marked with the inside orientation. 777 * @throws IllegalArgumentException if parts is empty 777 * @throws IllegalArgumentException if parts is empty or not circular 778 778 */ 779 779 private static List<WayInPolygon> markWayInsideSide(List<Way> parts, boolean isInner) { … … 785 785 786 786 if (!parts.get(pos).lastNode().equals(parts.get((pos + 1) % parts.size()).firstNode())) 787 throw new RuntimeException("Way not circular");787 throw new IllegalArgumentException("Way not circular"); 788 788 789 789 nextWayMap.put(parts.get(pos), parts.get((pos + 1) % parts.size())); … … 818 818 819 819 if (topNode.equals(topWay.firstNode()) || topNode.equals(topWay.lastNode())) { 820 Node headNode = null; // the node at junction 821 Node prevNode = null; // last node from previous path 822 wayClockwise = false; 820 Node headNode; // the node at junction 821 Node prevNode; // last node from previous path 823 822 824 823 //node is in split point - find the outermost way from this point
Note:
See TracChangeset
for help on using the changeset viewer.