From 4e98c504d0f44dced5a5de9929af2b9508efabd3 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Fri, 8 May 2020 09:32:40 +0200 Subject: [PATCH] FIRE-29545: Backspace not working after triple-click selecting last line --- indra/llui/lltextbase.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp index a17170b3a0..61bb4f8fc9 100644 --- a/indra/llui/lltextbase.cpp +++ b/indra/llui/lltextbase.cpp @@ -1112,6 +1112,9 @@ BOOL LLTextBase::handleMouseDown(S32 x, S32 y, MASK mask) line_start = it->mDocIndexStart; } line_end = it->mDocIndexEnd; + + // FIRE-29545: Backspace not working after triple-click selecting last line + line_end = llclamp(line_end, 0, getLength()); } if (line_start == -1)