- fixed : current selection on the line editor extends when right-clicking outside of the selection

--HG--
branch : Misc-Spellcheck
meow-7.2.2
Kitty Barnett 2010-12-21 04:27:30 +01:00
parent c3638ecea8
commit bb282e82dc
1 changed files with 3 additions and 1 deletions

View File

@ -2434,8 +2434,10 @@ void LLLineEditor::showContextMenu(S32 x, S32 y)
S32 screen_x, screen_y;
localPointToScreen(x, y, &screen_x, &screen_y);
// [SL:KB] - Patch: Misc-Spellcheck | Checked: 2010-12-19 (Catznip-2.5.0a) | Added: Catznip-2.5.0a
// Move the cursor to where the user right-clicked
// Move the cursor to where the user right-clicked (clear the current selection if the user right-clicked outside of it)
setCursorAtLocalPos(x);
if ( (mCursorPos < mSelectionStart) || (mCursorPos > mSelectionEnd) )
deselect();
// If the cursor is on a misspelled word, retrieve suggestions for it
mSuggestionList.clear();