Fix #388
This commit is contained in:
parent
00d93e6921
commit
1a9ab003c5
1 changed files with 4 additions and 0 deletions
|
@ -1825,6 +1825,10 @@ proc strokeShapes(
|
||||||
var dashes = dashes
|
var dashes = dashes
|
||||||
if dashes.len mod 2 != 0:
|
if dashes.len mod 2 != 0:
|
||||||
dashes.add(dashes)
|
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:
|
for i in 1 ..< shape.len:
|
||||||
let
|
let
|
||||||
|
|
Loading…
Reference in a new issue