diff options
| author | Merov Linden <merov@lindenlab.com> | 2012-06-19 11:35:20 -0700 |
|---|---|---|
| committer | Merov Linden <merov@lindenlab.com> | 2012-06-19 11:35:20 -0700 |
| commit | 3af9d7c0535c8d94b194952c98196bac1d8c3dda (patch) | |
| tree | 68b347e9303f814de271cc27f38f19ae5a6fa4e2 /indra/newview/llexpandabletextbox.cpp | |
| parent | b882fe3b8dde9338c092922672015f975ca09587 (diff) | |
| parent | ad4ae5583534197cb00c13d769e504fcde4d19d5 (diff) | |
Merge pull from richard/viewer-chui
Diffstat (limited to 'indra/newview/llexpandabletextbox.cpp')
| -rw-r--r-- | indra/newview/llexpandabletextbox.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llexpandabletextbox.cpp b/indra/newview/llexpandabletextbox.cpp index 935dcb74b0..a50184460b 100644 --- a/indra/newview/llexpandabletextbox.cpp +++ b/indra/newview/llexpandabletextbox.cpp @@ -150,7 +150,7 @@ void LLExpandableTextBox::LLTextBoxEx::showExpandText() std::pair<S32, S32> visible_lines = getVisibleLines(true); S32 last_line = visible_lines.second - 1; - LLStyle::Params expander_style(getDefaultStyleParams()); + LLStyle::Params expander_style(getStyleParams()); expander_style.font.style = "UNDERLINE"; expander_style.color = LLUIColorTable::instance().getColor("HTMLLinkColor"); LLExpanderSegment* expanderp = new LLExpanderSegment(new LLStyle(expander_style), getLineStart(last_line), getLength() + 1, mExpanderLabel, *this); @@ -166,7 +166,7 @@ void LLExpandableTextBox::LLTextBoxEx::hideExpandText() if (mExpanderVisible) { // this will overwrite the expander segment and all text styling with a single style - LLStyleConstSP sp(new LLStyle(getDefaultStyleParams())); + LLStyleConstSP sp(new LLStyle(getStyleParams())); LLNormalTextSegment* segmentp = new LLNormalTextSegment(sp, 0, getLength() + 1, *this); insertSegment(segmentp); |
