radio-box% initial selection and #f
Closes PR 11107 original commit: 8f6acf6aae3b389a85cef3867d27c41393c12f3c
This commit is contained in:
parent
78c90d9910
commit
a74d9e8c80
|
@ -333,11 +333,12 @@
|
|||
(lambda ()
|
||||
(let ([cwho '(constructor radio-box)])
|
||||
(check-container-ready cwho parent)
|
||||
(unless (< selection (length choices))
|
||||
(raise-mismatch-error (who->name cwho)
|
||||
(format "initial selection is too large, given only ~a choices: "
|
||||
(length choices))
|
||||
selection))))
|
||||
(when selection
|
||||
(unless (< selection (length choices))
|
||||
(raise-mismatch-error (who->name cwho)
|
||||
(format "initial selection is too large, given only ~a choices: "
|
||||
(length choices))
|
||||
selection)))))
|
||||
label parent callback #f)))
|
||||
(when (or (not selection) (positive? selection))
|
||||
(set-selection selection)))))
|
||||
|
|
Loading…
Reference in New Issue
Block a user