Changeset 15182 in josm
- Timestamp:
- 2019-06-18T03:00:04+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/relations/Multipolygon.java
r15178 r15182 186 186 this.nodes = new ArrayList<>(nodes); 187 187 // see #17819 188 if (wayIds.size() == 1) { 188 final int size = wayIds.size(); 189 if (size == 1) { 189 190 this.wayIds = Collections.singleton(wayIds.iterator().next()); 190 191 } else { 191 this.wayIds = wayIds.size()<= 10 ? new ArrayList<>(wayIds) : new HashSet<>(wayIds);192 this.wayIds = size <= 10 ? new ArrayList<>(wayIds) : new HashSet<>(wayIds); 192 193 } 193 194 this.selected = selected;
Note:
See TracChangeset
for help on using the changeset viewer.