summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorEli Linden <eli@lindenlab.com>2010-02-17 14:43:04 +0800
committerEli Linden <eli@lindenlab.com>2010-02-17 14:43:04 +0800
commit3f623398ee0d14520e5a2af1e7719d19a57d1a74 (patch)
treeb41e58bde3eb2fbe8c08628aa7cc973f2181d100 /indra
parentc264ffe8153d9c8daf9c6db962a7a71ca43ecac3 (diff)
parent935d12277c7b8e6cee605e89c3904c3ba5b6c3f6 (diff)
Merge
Diffstat (limited to 'indra')
-rw-r--r--indra/llui/lltexteditor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llui/lltexteditor.cpp b/indra/llui/lltexteditor.cpp
index ce5f1bd082..7d230f7d42 100644
--- a/indra/llui/lltexteditor.cpp
+++ b/indra/llui/lltexteditor.cpp
@@ -2524,9 +2524,9 @@ void LLTextEditor::loadKeywords(const std::string& filename,
void LLTextEditor::updateSegments()
{
- LLFastTimer ft(FTM_SYNTAX_HIGHLIGHTING);
- if (mKeywords.isLoaded())
+ if (mReflowIndex < S32_MAX && mKeywords.isLoaded())
{
+ LLFastTimer ft(FTM_SYNTAX_HIGHLIGHTING);
// HACK: No non-ascii keywords for now
segment_vec_t segment_list;
mKeywords.findSegments(&segment_list, getWText(), mDefaultColor.get(), *this);