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