summaryrefslogtreecommitdiff
path: root/indra/llui/lllineeditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llui/lllineeditor.cpp')
-rw-r--r--indra/llui/lllineeditor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llui/lllineeditor.cpp b/indra/llui/lllineeditor.cpp
index acdcd38c24..8fc0465acf 100644
--- a/indra/llui/lllineeditor.cpp
+++ b/indra/llui/lllineeditor.cpp
@@ -1889,7 +1889,7 @@ void LLLineEditor::draw()
// Calculate start and end indices for the first and last visible word
U32 start = prevWordPos(mScrollHPos), end = nextWordPos(mScrollHPos + rendered_text);
- if ( (mSpellCheckStart != start) || (mSpellCheckEnd = end) )
+ if ( (mSpellCheckStart != start) || (mSpellCheckEnd != end) )
{
const LLWString& text = mText.getWString().substr(start, end);
@@ -1911,7 +1911,7 @@ void LLLineEditor::draw()
{
word_end++;
}
- if (word_end >= text.length())
+ if (word_end > text.length())
break;
// Don't process words shorter than 3 characters