summaryrefslogtreecommitdiff
path: root/indra/llxuixml
diff options
context:
space:
mode:
authorLeyla Farazha <leyla@lindenlab.com>2011-07-14 12:14:07 -0700
committerLeyla Farazha <leyla@lindenlab.com>2011-07-14 12:14:07 -0700
commit6a3f8068837311b841acea36b904f399424c20df (patch)
treed56a2cbaa58e28ec9242d1e6b989a02c63c92915 /indra/llxuixml
parente17c7e6d24d5a25e4c0544ca2bc25fbc0c29d161 (diff)
parentd668270c13fcad8ae6e0fdfdf063a16be6083243 (diff)
merge
Diffstat (limited to 'indra/llxuixml')
-rw-r--r--indra/llxuixml/llinitparam.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/llxuixml/llinitparam.h b/indra/llxuixml/llinitparam.h
index 35c889b69f..7c4d4c8a43 100644
--- a/indra/llxuixml/llinitparam.h
+++ b/indra/llxuixml/llinitparam.h
@@ -1775,8 +1775,8 @@ namespace LLInitParam
void serializeBlock(Parser& parser, Parser::name_stack_t name_stack = Parser::name_stack_t(), const BaseBlock* diff_block = NULL) const
{
- const self_t& typed_param = static_cast<const self_t&>(*this);
- const self_t* diff_param = static_cast<const self_t*>(diff_block);
+ const derived_t& typed_param = static_cast<const derived_t&>(*this);
+ const derived_t* diff_param = static_cast<const derived_t*>(diff_block);
std::string key = typed_param.getValueName();
@@ -1801,6 +1801,8 @@ namespace LLInitParam
// be exported as <color green="1"/>, since it was probably the intent of the user to
// be specific about the RGB color values. This also fixes an issue where we distinguish
// between rect.left not being provided and rect.left being explicitly set to 0 (same as default)
+ const_cast<derived_t&>(typed_param).updateBlockFromValue();
+
block_t::serializeBlock(parser, name_stack, NULL);
}
}
@@ -1863,7 +1865,7 @@ namespace LLInitParam
mValueAge = VALUE_AUTHORITATIVE;
mValue = val;
typed_param.clearValueName();
- static_cast<derived_t*>(const_cast<self_t*>(this))->updateBlockFromValue();
+ static_cast<derived_t*>(this)->updateBlockFromValue();
}
value_assignment_t getValue() const