RafalBuchner / StemThickness

Apache License 2.0
29 stars 13 forks source link

Macro Window Warning in G3 #27

Closed LibertyType closed 4 years ago

LibertyType commented 4 years ago

G3 [1335] Show Stem Thickness is generating a warning in the Macro Window under certain circumstances.

DIAGONAL MINUScrossPoints 4 crossPoints 1 list index out of range Traceback (most recent call last): File "plugin.py", line 197, in drawCrossingsForData FirstCrossPointA = NSPoint(crossPoints[i].x,crossPoints[i].y) #blue File "convenience.py", line 459, in getitemobjectAtIndex raise IndexError("list index out of range") IndexError: list index out of range

Most often it only happens when the green dot at the end of the dashed line generated by the plugin touches (usually) the lower left node although I saw it happen one time on the top-left node.

I also checked a file saved from [1321] and on the breve it would trigger the warning on more than one node in different locations on the path including on the right side of the glyph. That has not happened with the file saved by [1335] that I have observed.