aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra
diff options
context:
space:
mode:
authorthickbrick2010-09-25 04:04:26 +0200
committerthickbrick2010-09-25 13:34:28 +0200
commit8f30fb06d1361d7d74f018d5bbaf5e82b846d8a4 (patch)
tree64a7380c09344ff1e86e2ea0482b5241daa98e4c /linden/indra
parentMore LLLineEditor context translator bugfixes: (diff)
downloadmeta-impy-8f30fb06d1361d7d74f018d5bbaf5e82b846d8a4.zip
meta-impy-8f30fb06d1361d7d74f018d5bbaf5e82b846d8a4.tar.gz
meta-impy-8f30fb06d1361d7d74f018d5bbaf5e82b846d8a4.tar.bz2
meta-impy-8f30fb06d1361d7d74f018d5bbaf5e82b846d8a4.tar.xz
LLLineEditor context translator: re-select text properly.
Diffstat (limited to 'linden/indra')
-rw-r--r--linden/indra/llui/lllineeditor.cpp6
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