summaryrefslogtreecommitdiff
path: root/indra/llxml
diff options
context:
space:
mode:
authorMonroe Linden <monroe@lindenlab.com>2010-12-02 14:33:42 -0800
committerMonroe Linden <monroe@lindenlab.com>2010-12-02 14:33:42 -0800
commit1e050c2ed87ae2093623fa4c66a69aeee1fb980c (patch)
treeff9bf66608dc3b9c4459daa68ec99a3065182aac /indra/llxml
parent36954908632d6f5366f6517023676c1bcd71aa17 (diff)
parentd276950c8d4d53f9d5d6497d5a4a4582c499938a (diff)
merge
Diffstat (limited to 'indra/llxml')
-rw-r--r--indra/llxml/llcontrol.cpp14
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;