Fix typo in getCrossingSegments()

Closes #1773
This commit is contained in:
Jürg Lehni 2020-02-11 22:51:16 +01:00
parent 1efa0edb50
commit 18956805ef

View file

@ -943,8 +943,8 @@ PathItem.inject(new function() {
collect(inter); collect(inter);
// Find the beginning of the linked intersections and loop all // Find the beginning of the linked intersections and loop all
// the way back to start, to collect all valid intersections. // the way back to start, to collect all valid intersections.
while (inter && inter._prev) while (inter && inter._previous)
inter = inter._prev; inter = inter._previous;
collect(inter, start); collect(inter, start);
} }
return crossings; return crossings;