diff options
| author | Dessie Linden <dessie@lindenlab.com> | 2010-06-11 11:51:14 -0700 |
|---|---|---|
| committer | Dessie Linden <dessie@lindenlab.com> | 2010-06-11 11:51:14 -0700 |
| commit | 8ea4802251cbfb4fcf112f597f4a4ff1ab0d3f1f (patch) | |
| tree | 74db74b999f98cbe200d9c9e3eb1c9f58fad0062 /indra/llui/lltextbase.cpp | |
| parent | af4a2ec0f9f4e51e186f4b386b4465f6e107b63b (diff) | |
| parent | a0de40ddfa0cd318cb0b67e72e1739a706ff3a85 (diff) | |
Merge
Diffstat (limited to 'indra/llui/lltextbase.cpp')
| -rw-r--r-- | indra/llui/lltextbase.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp index d86709c448..72f3a14822 100644 --- a/indra/llui/lltextbase.cpp +++ b/indra/llui/lltextbase.cpp @@ -2743,6 +2743,12 @@ void LLInlineViewSegment::linkToDocument(LLTextBase* editor) editor->addDocumentChild(mView); } +LLLineBreakTextSegment::LLLineBreakTextSegment(S32 pos):LLTextSegment(pos,pos+1) +{ + LLStyleSP s( new LLStyle(LLStyle::Params().visible(true))); + + mFontHeight = llceil(s->getFont()->getLineHeight()); +} LLLineBreakTextSegment::LLLineBreakTextSegment(LLStyleConstSP style,S32 pos):LLTextSegment(pos,pos+1) { mFontHeight = llceil(style->getFont()->getLineHeight()); |
