diff options
author | Andrey Lihatskiy <alihatskiy@productengine.com> | 2020-10-14 22:00:09 +0300 |
---|---|---|
committer | Andrey Lihatskiy <alihatskiy@productengine.com> | 2020-10-14 22:00:09 +0300 |
commit | 80dd72ff2b30fd345482f0c2ede516e9b4bba8f3 (patch) | |
tree | c4e90216ac4bd5082c15d0320d37b2938ea285ff /indra/llui/lltextbase.cpp | |
parent | 42fa322e76757073ecc8e884f7fd0fb80e0dd4ad (diff) | |
parent | a2c8c8238cfb109e0da81363995e08e99173426f (diff) |
Merge branch 'master' into DRTVWR-514-keymappings
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; |