I think your problem is due to is operator.
It evaluates to true
if the object referenced by draw
is an instance of the DrawingTools.Text
class (or a subclass of it).
I think your problem is due to is operator.
It evaluates to true
if the object referenced by draw
is an instance of the DrawingTools.Text
class (or a subclass of it).