summaryrefslogtreecommitdiff
path: root/indra/llxml
diff options
context:
space:
mode:
authorLoren Shih <seraph@lindenlab.com>2010-12-13 10:08:55 -0500
committerLoren Shih <seraph@lindenlab.com>2010-12-13 10:08:55 -0500
commit618249155ae333c64c693a0f7f38453f3c871787 (patch)
treedb28a3725a4e099735d4ce457ecf90267f8401da /indra/llxml
parent6f8ff871cdd0402d07800444f0524079fe02fac6 (diff)
parente27bcbe0d20c87556b0bcb1e3feaaea6544d3e16 (diff)
Automated merge up from viewer-development
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;