I’ve encountered an odd problem with Label::setEditable(). I have a main component with a number of child components. Each child component has its own set of labels, some of which are class members, and some of which are dynamically created via OwnedArray::add().
I have a situation wherein I created a set of labels in one component class, with setEditable(true), which were all working until I added (in a completely separate component class) code calling setEditable(true) on a label stored in the OwnedArray of the other class. I’m confused as to how the label stored in a different component class causes this problem, even if it was dynamically created using OwnedArray::add(new Label).
The problem goes away when I comment out the setEditable(true) statement for that label. It’s also worth noting that the label causing the problem works correctly (can be edited) and behaves as I would expect it to.