fix memq on not-yet-validated style list

svn: r4684
This commit is contained in:
Matthew Flatt 2006-10-26 05:04:47 +00:00
parent 4168ac3164
commit 387612edb7

View File

@ -85,8 +85,8 @@
[(parent [style null] [paint-callback default-paint-cb] [label #f] [gl-config #f])
canvas%-keywords]
(private-field [paint-cb paint-callback]
[has-x? (memq 'hscroll style)]
[has-y? (memq 'vscroll style)])
[has-x? (and (list? style) (memq 'hscroll style))]
[has-y? (and (list? style) (memq 'vscroll style))])
(inherit get-client-size get-dc set-label)
(rename [super-on-paint on-paint])
(sequence