Support <string name="foobar" value="foobar "/> in panel classes, like upstream

This commit is contained in:
Lirusaito
2013-07-22 23:58:03 -04:00
parent 8b5a654c5b
commit b082bc5056

View File

@@ -558,7 +558,9 @@ void LLPanel::initChildrenXML(LLXMLNodePtr node, LLUICtrlFactory* factory)
child->getAttributeString("name", string_name);
if (!string_name.empty())
{
mUIStrings[string_name] = child->getTextContents();
std::string contents = child->getTextContents();
child->getAttributeString("value", contents);
mUIStrings[string_name] = contents;
}
}
else