mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added an explanatory assertion to ValueTree
This commit is contained in:
parent
5587c16d78
commit
7e1afbb0a5
1 changed files with 3 additions and 0 deletions
|
|
@ -955,6 +955,9 @@ XmlElement* ValueTree::createXml() const
|
|||
|
||||
ValueTree ValueTree::fromXml (const XmlElement& xml)
|
||||
{
|
||||
// ValueTrees don't have any equivalent to XML text elements!
|
||||
jassert (! xml.isTextElement());
|
||||
|
||||
ValueTree v (xml.getTagName());
|
||||
v.object->properties.setFromXmlAttributes (xml);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue