From 8f30fb06d1361d7d74f018d5bbaf5e82b846d8a4 Mon Sep 17 00:00:00 2001 From: thickbrick Date: Sat, 25 Sep 2010 04:04:26 +0200 Subject: LLLineEditor context translator: re-select text properly. --- linden/indra/llui/lllineeditor.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'linden/indra/llui') diff --git a/linden/indra/llui/lllineeditor.cpp b/linden/indra/llui/lllineeditor.cpp index 5f2a314..503a1bd 100644 --- a/linden/indra/llui/lllineeditor.cpp +++ b/linden/indra/llui/lllineeditor.cpp @@ -1134,10 +1134,8 @@ void LLLineEditor::setSelection(S32 start, S32 end) { S32 len = mText.length(); - // JC, yes, this seems odd, but I think you have to presume a - // selection dragged from the end towards the start. - mSelectionStart = llclamp(end, 0, len); - mSelectionEnd = llclamp(start, 0, len); + mSelectionStart = llclamp(start, 0, len); + mSelectionEnd = llclamp(end, 0, len); setCursor(end); } -- cgit v1.1