closes PR 11236
original commit: 08b9396e2fdea6e1430cfabc130efafe14a5c4b1
This commit is contained in:
parent
7ce956664d
commit
7a1c34c546
|
@ -774,12 +774,12 @@ has been moved out).
|
|||
|
||||
(define (polygon-points->path points)
|
||||
(let ([path (new dc-path%)])
|
||||
(send path move-to (round (point-x (car points))) (round (point-y (car points))))
|
||||
(send path move-to (point-x (car points)) (point-y (car points)))
|
||||
(let loop ([points (cdr points)])
|
||||
(unless (null? points)
|
||||
(send path line-to
|
||||
(round (point-x (car points)))
|
||||
(round (point-y (car points))))
|
||||
(point-x (car points))
|
||||
(point-y (car points)))
|
||||
(loop (cdr points))))
|
||||
(send path close)
|
||||
;(send path line-to (round (point-x (car points))) (round (point-y (car points))))
|
||||
|
|
Loading…
Reference in New Issue
Block a user