mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-19 01:04:20 +00:00
Small fix to ValueTree
This commit is contained in:
parent
59a2506864
commit
45befc9ed2
3 changed files with 5 additions and 5 deletions
|
|
@ -519,7 +519,7 @@ int ValueTree::getNumChildren() const throw()
|
|||
|
||||
ValueTree ValueTree::getChild (int index) const throw()
|
||||
{
|
||||
return (SharedObject*) object->children [index];
|
||||
return object != 0 ? (SharedObject*) object->children [index] : ValueTree ((SharedObject*) 0);
|
||||
}
|
||||
|
||||
ValueTree ValueTree::getChildWithName (const String& type) const throw()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue