#4639 Crash at getDimensionsF32
parent
6b0b8ce196
commit
d97cb0f18c
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue