From d24282c5f105404502fffd70b39d3d7e4c44bf5b Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Sun, 15 May 2011 17:59:45 -0700 Subject: Made LLTextEditor::clear() actually clear the contents of the textbox rather than just replace unstyled text --- linden/indra/llui/lltexteditor.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/linden/indra/llui/lltexteditor.cpp b/linden/indra/llui/lltexteditor.cpp index dd72a69..79966c2 100644 --- a/linden/indra/llui/lltexteditor.cpp +++ b/linden/indra/llui/lltexteditor.cpp @@ -3869,6 +3869,12 @@ void LLTextEditor::onTabInto() // virtual void LLTextEditor::clear() { + // Also clear any styling we might have added -- MC + mParseHTML = FALSE; + mParseHighlights = FALSE; + + mSegments.clear(); + setText(LLStringUtil::null); std::for_each(mSegments.begin(), mSegments.end(), DeletePointer()); mSegments.clear(); -- cgit v1.1