mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-01-22 04:18:01 +00:00
Keep from getting stuck in an infinite loop
This commit is contained in:
parent
a989611515
commit
4fc6ca3c3b
@ -1640,8 +1640,13 @@ void Clipper::FixHoleLinkage(OutRec &outrec)
|
||||
outrec.FirstLeft->Pts)) return;
|
||||
|
||||
OutRec* orfl = outrec.FirstLeft;
|
||||
while (orfl && ((orfl->IsHole == outrec.IsHole) || !orfl->Pts))
|
||||
OutRec* first = orfl;
|
||||
while (orfl && ((orfl->IsHole == outrec.IsHole) || !orfl->Pts)) {
|
||||
orfl = orfl->FirstLeft;
|
||||
if (orfl == first) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
outrec.FirstLeft = orfl;
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user