summaryrefslogtreecommitdiff
path: root/indra/llui/lltexteditor.cpp
diff options
context:
space:
mode:
authorIma Mechanique <ima.mechanique@secondlife.com>2014-02-06 16:47:27 +0000
committerIma Mechanique <ima.mechanique@secondlife.com>2014-02-06 16:47:27 +0000
commit00a99d9097131c02c6486112b32e57f534bf61be (patch)
tree3e94b2ce6d97db3727b6d8eaeb06a576039294cb /indra/llui/lltexteditor.cpp
parent01b7ae8abe7efc101202fea786e97862c44e1d21 (diff)
Adding clear methods to remove any highlighting.
Diffstat (limited to 'indra/llui/lltexteditor.cpp')
-rwxr-xr-xindra/llui/lltexteditor.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/llui/lltexteditor.cpp b/indra/llui/lltexteditor.cpp
index 303bc48933..e11636682e 100755
--- a/indra/llui/lltexteditor.cpp
+++ b/indra/llui/lltexteditor.cpp
@@ -2529,6 +2529,14 @@ void LLTextEditor::loadKeywords()
}
}
+void LLTextEditor::clearSegments()
+{
+ if (!mSegments.empty())
+ {
+ mSegments.clear();
+ }
+}
+
void LLTextEditor::updateSegments()
{
if (mReflowIndex < S32_MAX && mKeywords.isLoaded() && mParseOnTheFly)