Small fix for path intersections

This commit is contained in:
leyghisbb 2020-08-30 11:20:29 +02:00
parent adbdc6d218
commit 65bfeb6ea8
2 changed files with 3 additions and 4 deletions

View File

@ -248,9 +248,8 @@ class IntersectionChecker(Checker):
subpaths.append(raw[prev:])
seg = []
for simpath in subpaths:
closed = False
if simpath[-1][0] == 'Z':
closed = True
simpath[-1][0] = 'L'
if simpath[-2][0] == 'L': simpath[-1][1] = simpath[0][1]
else: simpath.pop()
for i in range(len(simpath)):