Little bug in TreeViewItem


#1

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('/', '\\'));

 


#2

Thanks for spotting that, will sort it out!


#3

Great, thanks for doing that so quickly!