#4639 Crash at getDimensionsF32

master
Andrey Kleshchev 2025-09-05 23:47:38 +03:00 committed by Andrey Kleshchev
parent 6b0b8ce196
commit d97cb0f18c
1 changed files with 1 additions and 1 deletions

View File

@ -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();