mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-06 10:25:41 +02:00
Merge pull request #234 from mapbox/clipper-update
Update clipper to 9edc2924e39:
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
## 1.11.2
|
||||||
|
|
||||||
|
* Update Clipper to fix potential crash
|
||||||
|
|
||||||
## 1.11.1
|
## 1.11.1
|
||||||
|
|
||||||
* Make better use of C++ standard libraries
|
* Make better use of C++ standard libraries
|
||||||
|
|||||||
+2
-2
@@ -4643,7 +4643,7 @@ bool Clipper::FindIntersectLoop(std::unordered_multimap<int, OutPtIntersect> & d
|
|||||||
range = dupeRec.equal_range(idx_search);
|
range = dupeRec.equal_range(idx_search);
|
||||||
visited.insert(idx_search);
|
visited.insert(idx_search);
|
||||||
// Check for connection through chain of other intersections
|
// 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);
|
OutRec * itRec = GetOutRec(it->second.op2->Idx);
|
||||||
if (visited.count(itRec->Idx) > 0 ||
|
if (visited.count(itRec->Idx) > 0 ||
|
||||||
@@ -4741,7 +4741,7 @@ bool Clipper::FixIntersects(std::unordered_multimap<int, OutPtIntersect> & dupeR
|
|||||||
std::set<int> visited;
|
std::set<int> visited;
|
||||||
visited.insert(outRec_search->Idx);
|
visited.insert(outRec_search->Idx);
|
||||||
// Check for connection through chain of other intersections
|
// 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);
|
OutRec * itRec = GetOutRec(it->second.op2->Idx);
|
||||||
if (itRec->Idx != outRec_search->Idx &&
|
if (itRec->Idx != outRec_search->Idx &&
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
#define VERSION "tippecanoe v1.11.1\n"
|
#define VERSION "tippecanoe v1.11.2\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user