Don't setText to gibberish when building a search_editor or filter_editor fromXML

This commit is contained in:
Lirusaito
2013-07-17 02:43:53 -04:00
parent bee21033b8
commit a61d88c701
2 changed files with 4 additions and 4 deletions

View File

@@ -58,7 +58,7 @@ LLView* LLFilterEditor::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFacto
S32 max_text_length = 128;
node->getAttributeS32("max_length", max_text_length);
std::string text = node->getValue().substr(0, max_text_length - 1);
//std::string text = node->getValue().substr(0, max_text_length - 1);
LLFilterEditor* search_editor = new LLFilterEditor("filter_editor",
rect,
@@ -70,7 +70,7 @@ LLView* LLFilterEditor::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFacto
search_editor->setLabel(label);
}
search_editor->setText(text);
//search_editor->setText(text);
search_editor->initFromXML(node, parent);

View File

@@ -153,7 +153,7 @@ LLView* LLSearchEditor::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFacto
S32 max_text_length = 128;
node->getAttributeS32("max_length", max_text_length);
std::string text = node->getValue().substr(0, max_text_length - 1);
//std::string text = node->getValue().substr(0, max_text_length - 1);
LLSearchEditor* search_editor = new LLSearchEditor("search_editor",
rect,
@@ -165,7 +165,7 @@ LLView* LLSearchEditor::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFacto
search_editor->setLabel(label);
}
search_editor->setText(text);
//search_editor->setText(text);
search_editor->initFromXML(node, parent);