fix checking of dc<%> set-pen method arguments
This commit is contained in:
parent
85e4fed31f
commit
712ee0cc68
|
@ -493,7 +493,7 @@
|
||||||
args
|
args
|
||||||
[([pen% p]) (set-pen! p) (reset-align!)]
|
[([pen% p]) (set-pen! p) (reset-align!)]
|
||||||
[([(make-alts string? color%) col]
|
[([(make-alts string? color%) col]
|
||||||
[exact-nonnegative-integer? width]
|
[pen-width? width]
|
||||||
[pen-style-symbol? style])
|
[pen-style-symbol? style])
|
||||||
(set-pen! (send the-pen-list find-or-create-pen col width style))
|
(set-pen! (send the-pen-list find-or-create-pen col width style))
|
||||||
(reset-align!)]
|
(reset-align!)]
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
(provide pen%
|
(provide pen%
|
||||||
pen-list% the-pen-list
|
pen-list% the-pen-list
|
||||||
|
pen-width?
|
||||||
pen-style-symbol?)
|
pen-style-symbol?)
|
||||||
|
|
||||||
(define (pen-style-symbol? s)
|
(define (pen-style-symbol? s)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user