From a61d88c701017c6888b004f9e76a5efee4284771 Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Wed, 17 Jul 2013 02:43:53 -0400 Subject: [PATCH] Don't setText to gibberish when building a search_editor or filter_editor fromXML --- indra/llui/llfiltereditor.cpp | 4 ++-- indra/llui/llsearcheditor.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/indra/llui/llfiltereditor.cpp b/indra/llui/llfiltereditor.cpp index 12e1c2d52..1d13b1536 100644 --- a/indra/llui/llfiltereditor.cpp +++ b/indra/llui/llfiltereditor.cpp @@ -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); diff --git a/indra/llui/llsearcheditor.cpp b/indra/llui/llsearcheditor.cpp index 6ccfed88a..de8327003 100644 --- a/indra/llui/llsearcheditor.cpp +++ b/indra/llui/llsearcheditor.cpp @@ -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);