summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrichard <none@none>2010-02-16 19:14:55 -0800
committerrichard <none@none>2010-02-16 19:14:55 -0800
commit69032d8d9d660de5b3c97589b7cc55dac70b153c (patch)
tree14b792700888ecc9b35a20380d691f4e5a959a9c
parentd6027f543269610e72fc1ab1876e71a434b3461c (diff)
EXT-5071 - Script Editor slows down FPS when editing scripts with 500+ lines
reviewed by Monroe
-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);