PIValueTree::contains fix for null entry

This commit is contained in:
2024-05-22 15:15:32 +03:00
parent 7eae1e127c
commit af4b718053

View File

@@ -135,7 +135,7 @@ PIVariant PIValueTree::childValue(const PIString & child_name, const PIVariant &
bool PIValueTree::contains(const PIString & name) const { bool PIValueTree::contains(const PIString & name) const {
if (_is_null) return true; if (_is_null) return false;
for (const auto & c: _children) for (const auto & c: _children)
if (c.name() == name) return true; if (c.name() == name) return true;
return false; return false;