summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorKitty Barnett <develop@catznip.com>2012-05-15 14:09:13 +0200
committerKitty Barnett <develop@catznip.com>2012-05-15 14:09:13 +0200
commit8199cc997aeaccc72b5bd5389ded8afc7b9c379c (patch)
treee8fe3a5aa8a55eb547208cfb9ab28606cf5ee3bd /indra/llui
parent34e7226ac88e14d4cfed6bc0d63da215afe0ac88 (diff)
STORM-276 FIXED Right-to-left line editor selection becomes invisible if the cursor moves
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/lllineeditor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/llui/lllineeditor.cpp b/indra/llui/lllineeditor.cpp
index d87b9d930c..83527ae5ad 100644
--- a/indra/llui/lllineeditor.cpp
+++ b/indra/llui/lllineeditor.cpp
@@ -1805,14 +1805,14 @@ void LLLineEditor::draw()
{
S32 select_left;
S32 select_right;
- if( mSelectionStart < getCursor() )
+ if (mSelectionStart < mSelectionEnd)
{
select_left = mSelectionStart;
- select_right = getCursor();
+ select_right = mSelectionEnd;
}
else
{
- select_left = getCursor();
+ select_left = mSelectionEnd;
select_right = mSelectionStart;
}