summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2020-05-08 11:54:58 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2020-05-08 11:54:58 +0300
commit0828d7375af44aa270635f374c993959ae3e2a28 (patch)
tree35fd3b10ff4a56c55ab7b5e4016666d768903a75 /indra/llui
parent9c3368bbf60cb1d6f72f8f501981bc1b05a61a66 (diff)
SL-12396 FIXED Last line can't be removed if it was selected via triple-clicking
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/lltextbase.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp
index b48a32a622..30bf938591 100644
--- a/indra/llui/lltextbase.cpp
+++ b/indra/llui/lltextbase.cpp
@@ -1037,6 +1037,7 @@ BOOL LLTextBase::handleMouseDown(S32 x, S32 y, MASK mask)
line_start = it->mDocIndexStart;
}
line_end = it->mDocIndexEnd;
+ line_end = llclamp(line_end, 0, getLength());
}
if (line_start == -1)