PIValueTree::contains fix for null entry
This commit is contained in:
@@ -135,7 +135,7 @@ PIVariant PIValueTree::childValue(const PIString & child_name, const PIVariant &
|
||||
|
||||
|
||||
bool PIValueTree::contains(const PIString & name) const {
|
||||
if (_is_null) return true;
|
||||
if (_is_null) return false;
|
||||
for (const auto & c: _children)
|
||||
if (c.name() == name) return true;
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user