Update clipper to 9edc2924e39:

commit 9edc2924e39266d70774b0ed0e07329a95e76f10
Author: Blake Thompson <flippmoke@gmail.com>
Date:   Mon May 2 14:45:21 2016 -0400

	Updated to prevent segfault in case where specific iterator was being deleted
	and therefore, the range second no longer existed.
This commit is contained in:
Eric Fischer
2016-05-02 16:23:08 -07:00
parent 364450ad4c
commit 1aac686670
3 changed files with 7 additions and 3 deletions
+2 -2
View File
@@ -4643,7 +4643,7 @@ bool Clipper::FindIntersectLoop(std::unordered_multimap<int, OutPtIntersect> & d
range = dupeRec.equal_range(idx_search);
visited.insert(idx_search);
// Check for connection through chain of other intersections
for (auto it = range.first; it != range.second; ++it)
for (auto it = range.first; it != range.second && it != dupeRec.end() && it->first == idx_search; ++it)
{
OutRec * itRec = GetOutRec(it->second.op2->Idx);
if (visited.count(itRec->Idx) > 0 ||
@@ -4741,7 +4741,7 @@ bool Clipper::FixIntersects(std::unordered_multimap<int, OutPtIntersect> & dupeR
std::set<int> visited;
visited.insert(outRec_search->Idx);
// Check for connection through chain of other intersections
for (auto it = range.first; it != range.second; ++it)
for (auto it = range.first; it != range.second && it != dupeRec.end() && it->first == outRec_search->Idx; ++it)
{
OutRec * itRec = GetOutRec(it->second.op2->Idx);
if (itRec->Idx != outRec_search->Idx &&