diff options
author | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2014-07-08 13:07:46 +0300 |
---|---|---|
committer | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2014-07-08 13:07:46 +0300 |
commit | ae15e85e9f6e7b804326afa992c34c76388fc8e7 (patch) | |
tree | 2f5ffa15da7e3679bd5297ccd56ae8b2c405c68d /indra/llui | |
parent | bfa42c9e28075cb35f80e6fce7d1db0443027052 (diff) |
MAINT-3460 FIXED Dictionary doesn't exchange the mispelled word to correct one in a special case
Diffstat (limited to 'indra/llui')
-rwxr-xr-x | indra/llui/lltextbase.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp index b57e858d9e..2d7062e71d 100755 --- a/indra/llui/lltextbase.cpp +++ b/indra/llui/lltextbase.cpp @@ -1308,14 +1308,14 @@ void LLTextBase::replaceWithSuggestion(U32 index) if ( (it->first <= (U32)mCursorPos) && (it->second >= (U32)mCursorPos) ) { deselect(); - - // Delete the misspelled word - removeStringNoUndo(it->first, it->second - it->first); - // Insert the suggestion in its place LLWString suggestion = utf8str_to_wstring(mSuggestionList[index]); insertStringNoUndo(it->first, utf8str_to_wstring(mSuggestionList[index])); + // Delete the misspelled word + removeStringNoUndo(it->first + (S32)suggestion.length(), it->second - it->first); + + setCursorPos(it->first + (S32)suggestion.length()); break; |