| Description: |
We have some internally developed widgets which return
an empty string on unknown commands/options. This
causes problems for Widget::focusOK in widget.tcl,
which uses cget -editable:
Errorinfo: can't use empty string as operand of "!"
while executing
"if {($code == 0) && !$value} {
return 0
}"
(procedure "focusOK" line 27)
invoked from within
"focusOK $cur"
(procedure "Widget::focusNext" line 36)
invoked from within
"Widget::focusNext .apar2"
invoked from within
"focus [Widget::focusNext .apar2]"
(command bound to event)
May I suggest that line 1301 in widget.tcl is changed from:
if {($code == 0) && !$value} {
to:
if {($code == 0) && $value == 0} {
which is not only safer, but also easier to read, imo.
|