mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 16:35:40 +02:00
Keep from getting stuck in an infinite loop
This commit is contained in:
+6
-1
@@ -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;
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user