Little bug in TreeViewItem

The findItemFromIdentifierString method won't find items that have a / symbol in the name. This is because they're escaped to \\ in the getItemIdentifierString method:

return s + "/" + getUniqueName().replaceCharacter ('/', '\\');

but not escaped in the findItemFromIdentifierString method. Just needs line 1788 in juce_TreeView.cpp changing from:

 const String thisId ("/" + getUniqueName());

to

const String thisId ("/" + getUniqueName().replaceCharacter('/', '\\'));

 

Thanks for spotting that, will sort it out!

Great, thanks for doing that so quickly!