FIX: crash when slicing(generate infill)
jira: STUDIO-11142 Change-Id: I2bc086d7259ad327534c57787e06242b7340295c
This commit is contained in:
parent
ed4183471d
commit
34ec644e29
|
@ -2192,6 +2192,8 @@ static void connect_monotonic_regions(std::vector<MonotonicRegion> ®ions, con
|
|||
for (;;) {
|
||||
MapType key(rbegin, nullptr);
|
||||
auto it = std::lower_bound(map_intersection_to_region_start.begin(), map_intersection_to_region_start.end(), key);
|
||||
if (it == map_intersection_to_region_start.end() || it->first != key.first)
|
||||
break;
|
||||
assert(it != map_intersection_to_region_start.end() && it->first == key.first);
|
||||
it->second->left_neighbors.emplace_back(®ion);
|
||||
SegmentIntersection *rnext = &vertical_run_top(vline_right, *rbegin);
|
||||
|
|
Loading…
Reference in New Issue