add missing bounds check

pull/2027/head
George Steel 2023-01-22 19:54:57 -05:00
rodzic eb3d6bbcc1
commit 9f787a661e
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -209,6 +209,8 @@ def stitch_curve_even(points: typing.Sequence[Point], stitch_length: float, tole
def path_to_curves(points: typing.List[Point]):
# split a path at obvious corner points so that they get stitched exactly
if len(points) < 3:
return [points]
curves = []
last = 0
last_seg = points[1] - points[0]