Merge pull request #389 from treeform/dev

Fix #388
This commit is contained in:
treeform 2022-03-12 13:58:27 -08:00 committed by GitHub
commit e17d9f2a43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1825,6 +1825,10 @@ proc strokeShapes(
var dashes = dashes
if dashes.len mod 2 != 0:
dashes.add(dashes)
# Make sure gaps and dashes are more then zero, otherwise it will hang.
for d in dashes:
if d <= 0.0:
raise newException(PixieError, "Invalid line dash value")
for i in 1 ..< shape.len:
let