Happen in develop,
add to the ValueTreeDemo file
class ValueTreeItemComponent : public Component
{
public:
ValueTreeItemComponent(TreeViewItem *pItem)
: label("coucou")
{
addAndMakeVisible(&label);
}
~ValueTreeItemComponent()
{
}
void resized() override
{
label.setBounds(0, 0, getWidth(), getHeight());
}
juce::Label label;
};
and to ValueTreeItem
std::unique_ptr<juce::Component> createItemComponent() override
{
return std::make_unique<ValueTreeItemComponent>(this);
}
and replace ValueTreeDemo::timerCallback impl by
void timerCallback() override
{
undoManager.beginNewTransaction();
rootItem->clearSubItems();
rootItem->refreshSubItems();
}
click some item and at some point…boom 
Here is the full file
ValueTreesDemo.h (10.3 KB)
Thanks !
