summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2025-09-05 23:47:38 +0300
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2025-09-06 00:53:47 +0300
commitd97cb0f18cd96027bd40ade8323b7e4a5a93a55e (patch)
tree70176a331953004130a5796c60cb945a500f2fc0 /indra
parent6b0b8ce19639a587311823555d4cabf5a98a4793 (diff)
#4639 Crash at getDimensionsF32
Diffstat (limited to 'indra')
-rw-r--r--indra/llui/lltextbase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp
index ffaa09fd8c..3fe0df1848 100644
--- a/indra/llui/lltextbase.cpp
+++ b/indra/llui/lltextbase.cpp
@@ -3765,7 +3765,7 @@ bool LLNormalTextSegment::getDimensionsF32(S32 first_char, S32 num_chars, F32& w
{
height = 0;
width = 0;
- if (num_chars > 0)
+ if (num_chars > 0 && (mStart + first_char >= 0))
{
height = mFontHeight;
const LLWString &text = getWText();