diff options
| author | Hecklezz <tj8@live.com.au> | 2026-09-02 23:45:02 +1000 |
|---|---|---|
| committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2026-09-02 19:00:48 +0300 |
| commit | 1a033ac319f6d8625b797943cf2adac21ccbc39e (patch) | |
| tree | 31f915b172b18003a5e25fe0582a9a88cc9d59cc /indra/llui/lltextbase.cpp | |
| parent | 89f652a6d16e469da674397a8cee9d1071968610 (diff) | |
Fix LLInlineViewSegment::getNumChars not accounting for padding
Diffstat (limited to 'indra/llui/lltextbase.cpp')
| -rw-r--r-- | indra/llui/lltextbase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp index 06645df203..f0c3c97ef9 100644 --- a/indra/llui/lltextbase.cpp +++ b/indra/llui/lltextbase.cpp @@ -4151,7 +4151,7 @@ S32 LLInlineViewSegment::getNumChars(S32 num_pixels, S32 segment_offset, S32 lin { return 0; } - else if (line_offset != 0 && num_pixels < mView->getRect().getWidth()) + else if (line_offset != 0 && num_pixels < (mLeftPad + mRightPad + mView->getRect().getWidth())) { return 0; } |
