fix crash in lasercheck

This commit is contained in:
Mario Voigt 2022-01-04 19:10:11 +01:00
parent 0f36d43127
commit c788400523
1 changed files with 2 additions and 0 deletions

View File

@ -599,6 +599,8 @@ class LaserCheck(inkex.EffectExtension):
slopes = []
for i in range(0, len(segments)):
if i > 0:
if segments[i][0].lower() == 'z' or segments[i-1][0].lower() == 'z':
continue #skip closed contours in combined path
x1, y1, x2, y2 = segments[i-1][1][0], segments[i-1][1][1], segments[i][1][0], segments[i][1][1]
if x1 < x2:
p0 = [x1, y1]