summaryrefslogtreecommitdiff
path: root/indra/llui/lltextbase.cpp
diff options
context:
space:
mode:
authorangela <angela@lindenlab.com>2009-11-17 10:04:41 +0800
committerangela <angela@lindenlab.com>2009-11-17 10:04:41 +0800
commit28aa749db58b3a4095ca7e59811900767cd897b0 (patch)
tree82337af6ace682a5f5f5a7646f5dfd0dc44fa56a /indra/llui/lltextbase.cpp
parent27a555e443c98ce1a41ef21e6111bdfe903894e8 (diff)
parentbce2cab144214b5a90a702e62f1e7c98e93fefc3 (diff)
Automated merge with ssh://angela@hg.lindenlab.com/viewer/viewer-2-0/
Diffstat (limited to 'indra/llui/lltextbase.cpp')
-rw-r--r--indra/llui/lltextbase.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp
index 7b1aaac35c..d7697ac7cc 100644
--- a/indra/llui/lltextbase.cpp
+++ b/indra/llui/lltextbase.cpp
@@ -1506,9 +1506,8 @@ void LLTextBase::appendText(const std::string &new_text, bool prepend_newline, c
LLStyle::Params link_params = style_params;
link_params.color = match.getColor();
// apply font name from requested style_params
- std::string font_name = LLFontGL::nameFromFont(style_params.font());
- link_params.font.name.setIfNotProvided(font_name);
- link_params.font.style = "UNDERLINE";
+ std::string font_name = LLFontGL::nameFromFont(style_params.font());
+ link_params.underline = true;
link_params.link_href = match.getUrl();
// output the text before the Url
@@ -2251,7 +2250,7 @@ F32 LLNormalTextSegment::drawClippedSegment(S32 seg_start, S32 seg_end, S32 sele
rect.mLeft, rect.mTop,
color,
LLFontGL::LEFT, LLFontGL::TOP,
- 0,
+ mStyle->getFontStyle(),
mStyle->getShadowType(),
length, rect.getWidth(),
&right_x,
@@ -2270,7 +2269,7 @@ F32 LLNormalTextSegment::drawClippedSegment(S32 seg_start, S32 seg_end, S32 sele
rect.mLeft, rect.mTop,
LLColor4( 1.f - color.mV[0], 1.f - color.mV[1], 1.f - color.mV[2], 1.f ),
LLFontGL::LEFT, LLFontGL::TOP,
- 0,
+ mStyle->getFontStyle(),
LLFontGL::NO_SHADOW,
length, rect.mRight,
&right_x,
@@ -2287,7 +2286,7 @@ F32 LLNormalTextSegment::drawClippedSegment(S32 seg_start, S32 seg_end, S32 sele
rect.mLeft, rect.mTop,
color,
LLFontGL::LEFT, LLFontGL::TOP,
- 0,
+ mStyle->getFontStyle(),
mStyle->getShadowType(),
length, rect.mRight,
&right_x,