From 0bcc1cd25e50e0ffd6e3a7c742eb56f03e386094 Mon Sep 17 00:00:00 2001 From: Kitty Barnett Date: Tue, 21 Dec 2010 02:15:36 +0100 Subject: [PATCH] - fixed : LLLineEditor::getMisspelledWord() uses the wrong substring length --HG-- branch : Misc-Spellcheck --- indra/llui/lllineeditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/llui/lllineeditor.cpp b/indra/llui/lllineeditor.cpp index 498c5fdd3c..9bfaa1a75d 100644 --- a/indra/llui/lllineeditor.cpp +++ b/indra/llui/lllineeditor.cpp @@ -564,7 +564,7 @@ std::string LLLineEditor::getMisspelledWord(U32 posCursor) const itMisspell != mMisspellRanges.end(); ++itMisspell) { if ( (itMisspell->first <= posCursor) && (itMisspell->second >= posCursor) ) - return wstring_to_utf8str(mText.getWString().substr(itMisspell->first, itMisspell->second)); + return wstring_to_utf8str(mText.getWString().substr(itMisspell->first, itMisspell->second - itMisspell->first)); } return LLStringUtil::null; }