| Description: |
In the current implementation of the BWidget tree
widget, not enough checks are performed when
adding new nodes into the tree.
For example, the current code allows
somebody to create a new tree node
that contains into its node name any
instances of the characters &, |, ^, !.
However, if you add such nodes, expect
problems: as a canvas widget is
used for implementing the widget and these
characters have special meaning in tag
names (are considered operators - the
canvas man page does not stress this issue but thats
another story :-)) you end
up with various errors when the widget gets
drawn (for example errors during
canvas bbox). The user is not
always able to trace down the source of error
(I had to check the canvas implementation to
locate the error message, see what the
code tried to do (a search upon the tags)
and then go to the man page to find out what is wrong).
I can think of two possible solutions:
1) Check for these characters when a node is created
and through an error if any of these characters are used.
2) Allow these characters, but silently replace them
with something else.
George
|