diff options
author | Oz Linden <oz@lindenlab.com> | 2012-06-11 16:15:31 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2012-06-11 16:15:31 -0400 |
commit | eb227e4dbc45fb10e32bb391ce0553d34ad93284 (patch) | |
tree | e858cd4236ecffc7a31c1c9d6cd08bf2094093da /indra/llui/lltexteditor.cpp | |
parent | 1acae5b2915aacff7a2c7892ea2ab094b60b67c9 (diff) | |
parent | 7c77c76fc7ff50b179e6d736bf3539133982a24e (diff) |
merge spelling changes for UI review
Diffstat (limited to 'indra/llui/lltexteditor.cpp')
-rw-r--r-- | indra/llui/lltexteditor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llui/lltexteditor.cpp b/indra/llui/lltexteditor.cpp index b860f0b44f..144b6960a1 100644 --- a/indra/llui/lltexteditor.cpp +++ b/indra/llui/lltexteditor.cpp @@ -1960,9 +1960,13 @@ void LLTextEditor::showContextMenu(S32 x, S32 y) if (hasSelection()) { if ( (mCursorPos < llmin(mSelectionStart, mSelectionEnd)) || (mCursorPos > llmax(mSelectionStart, mSelectionEnd)) ) + { deselect(); + } else + { setCursorPos(llmax(mSelectionStart, mSelectionEnd)); + } } bool use_spellcheck = getSpellCheck(), is_misspelled = false; |