Small request for 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!

1 Like

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