diff options
author | Richard Nelson <none@none> | 2010-10-06 19:42:17 -0700 |
---|---|---|
committer | Richard Nelson <none@none> | 2010-10-06 19:42:17 -0700 |
commit | 5ec879ecba6c4a24fbb460afdfa753b2d39a1903 (patch) | |
tree | 8e3cac7093daf253a4fc057b39ad1dae78b4e3db | |
parent | a21be75f605822310d819dcb5c35157676b4f740 (diff) | |
parent | 0e05afdac5c8864080748f2c2c30b0743fd80d1a (diff) |
merge
-rw-r--r-- | indra/llxml/llcontrol.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/llxml/llcontrol.cpp b/indra/llxml/llcontrol.cpp index f9a39826f5..2822b767e5 100644 --- a/indra/llxml/llcontrol.cpp +++ b/indra/llxml/llcontrol.cpp @@ -170,6 +170,19 @@ LLSD LLControlVariable::getComparableValue(const LLSD& value) storable_value = false; } } + else if (TYPE_LLSD == type() && value.isString()) + { + LLPointer<LLSDNotationParser> parser = new LLSDNotationParser; + LLSD result; + if (parser->parse(std::stringstream(value.asString()), result, LLSDSerialize::SIZE_UNLIMITED) != LLSDParser::PARSE_FAILURE) + { + storable_value = result; + } + else + { + storable_value = value; + } + } else { storable_value = value; |