- fixed : LLLineEditor::getMisspelledWord() uses the wrong substring length

--HG--
branch : Misc-Spellcheck
meow-7.2.2
Kitty Barnett 2010-12-21 02:15:36 +01:00
parent 50b9a0aeca
commit 0bcc1cd25e
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}