diff options
-rw-r--r-- | linden/indra/llui/lllineeditor.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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) | |||
1134 | { | 1134 | { |
1135 | S32 len = mText.length(); | 1135 | S32 len = mText.length(); |
1136 | 1136 | ||
1137 | // JC, yes, this seems odd, but I think you have to presume a | 1137 | mSelectionStart = llclamp(start, 0, len); |
1138 | // selection dragged from the end towards the start. | 1138 | mSelectionEnd = llclamp(end, 0, len); |
1139 | mSelectionStart = llclamp(end, 0, len); | ||
1140 | mSelectionEnd = llclamp(start, 0, len); | ||
1141 | setCursor(end); | 1139 | setCursor(end); |
1142 | } | 1140 | } |
1143 | 1141 | ||