Meeting Request: Pick up LL's changes to land impact (Also introduces Land Impact floater)
Small change to lltextbox allowing us to use value attribute with <text/>'s YAY!! Cleaned up in llfloatertools as well to better diff.
This commit is contained in:
@@ -395,8 +395,14 @@ void LLTextBox::initFromXML(LLXMLNodePtr node, LLView* parent)
|
||||
LLFontGL* font = LLView::selectFont(node);
|
||||
if(font)
|
||||
mFontGL = font;
|
||||
|
||||
setText(node->getTextContents());
|
||||
|
||||
if (node->hasAttribute("value"))
|
||||
{
|
||||
std::string text;
|
||||
node->getAttributeString("value", text);
|
||||
setText(text);
|
||||
}
|
||||
else setText(node->getTextContents());
|
||||
|
||||
LLFontGL::HAlign halign = LLView::selectFontHAlign(node);
|
||||
setHAlign(halign);
|
||||
|
||||
Reference in New Issue
Block a user