diff options
author | Dave Houlton <euclid@lindenlab.com> | 2020-10-14 16:23:05 -0600 |
---|---|---|
committer | Dave Houlton <euclid@lindenlab.com> | 2020-10-14 16:23:05 -0600 |
commit | 317ff2ce6241b9eaccacbc27117351ebc3d5eea7 (patch) | |
tree | 2f162a12cd3b0878fca6d1d37124ef5adb2fa7f7 /indra/llui/lltextbase.cpp | |
parent | 846fc179b13ba06fe9a51be69d80e86d0f433a73 (diff) | |
parent | 52af846672d1d4f1cb9ccd46239cff9c81400ed5 (diff) |
Merged 6.4.11 into DRTVWR-510
Diffstat (limited to 'indra/llui/lltextbase.cpp')
-rw-r--r-- | indra/llui/lltextbase.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp index 30bf938591..ff72417867 100644 --- a/indra/llui/lltextbase.cpp +++ b/indra/llui/lltextbase.cpp @@ -2259,6 +2259,18 @@ void LLTextBase::needsReflow(S32 index) mReflowIndex = llmin(mReflowIndex, index); } +S32 LLTextBase::removeFirstLine() +{ + if (!mLineInfoList.empty()) + { + S32 length = getLineEnd(0); + deselect(); + removeStringNoUndo(0, length); + return length; + } + return 0; +} + void LLTextBase::appendLineBreakSegment(const LLStyle::Params& style_params) { segment_vec_t segments; |