Small request for Label::attachToComponent


#1

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?


#2

Yes, no harm in adding that!


#3

and jassert (this != child); in Component::addChildComponent()
for the same kind of silly mistakes leading to infinite recursion :slight_smile: