diff options
author | Richard Linden <none@none> | 2010-12-08 16:04:07 -0800 |
---|---|---|
committer | Richard Linden <none@none> | 2010-12-08 16:04:07 -0800 |
commit | ca2141ce90d484284bf57d72feb82e290958b061 (patch) | |
tree | 0e2ea77f0b7c2a9c9f9e69c09c0be22567afac3b /indra/llxml/llcontrol.cpp | |
parent | d9b4570883652d647c05083c18fac1a088efd6e2 (diff) | |
parent | c28b476a6806a426593e6798ea537f13ca354fc8 (diff) |
merge with viewer-dev
Diffstat (limited to 'indra/llxml/llcontrol.cpp')
-rw-r--r-- | indra/llxml/llcontrol.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/llxml/llcontrol.cpp b/indra/llxml/llcontrol.cpp index 27c694dde9..6c72609122 100644 --- a/indra/llxml/llcontrol.cpp +++ b/indra/llxml/llcontrol.cpp @@ -170,6 +170,20 @@ LLSD LLControlVariable::getComparableValue(const LLSD& value) storable_value = false; } } + else if (TYPE_LLSD == type() && value.isString()) + { + LLPointer<LLSDNotationParser> parser = new LLSDNotationParser; + LLSD result; + std::stringstream value_stream(value.asString()); + if (parser->parse(value_stream, result, LLSDSerialize::SIZE_UNLIMITED) != LLSDParser::PARSE_FAILURE) + { + storable_value = result; + } + else + { + storable_value = value; + } + } else { storable_value = value; |