In order to avoid silly mistakes leading to infinite recursion like I just did,
could we have
jassert (this != owner);
in the first line of Label::attachToComponent
?
In order to avoid silly mistakes leading to infinite recursion like I just did,
could we have
jassert (this != owner);
in the first line of Label::attachToComponent
?
Yes, no harm in adding that!
and jassert (this != child);
in Component::addChildComponent()
for the same kind of silly mistakes leading to infinite recursion