summaryrefslogtreecommitdiff
path: root/indra/llui/llscrolllistcell.cpp
diff options
context:
space:
mode:
authorangela <angela@lindenlab.com>2010-03-04 10:35:51 +0800
committerangela <angela@lindenlab.com>2010-03-04 10:35:51 +0800
commitf9815a6d13074cc3d1adda5aa41171f855097977 (patch)
treee960736102bb2a4f9cd46a6cbf7e04d4e0f0b187 /indra/llui/llscrolllistcell.cpp
parent06b5cd096f9125c8c9b472487e841c19f5e62015 (diff)
parent2b5ea03a40c7bdd5962dc25c807b4ce5abb49bde (diff)
merge
Diffstat (limited to 'indra/llui/llscrolllistcell.cpp')
-rw-r--r--indra/llui/llscrolllistcell.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/llui/llscrolllistcell.cpp b/indra/llui/llscrolllistcell.cpp
index 3cc92baa8d..d17be8b94a 100644
--- a/indra/llui/llscrolllistcell.cpp
+++ b/indra/llui/llscrolllistcell.cpp
@@ -185,6 +185,8 @@ LLScrollListText::LLScrollListText(const LLScrollListCell::Params& p)
{
sCount++;
+ mTextWidth = getWidth();
+
// initialize rounded rect image
if (!mRoundedRectImage)
{
@@ -340,7 +342,7 @@ void LLScrollListText::draw(const LLColor4& color, const LLColor4& highlight_col
0,
LLFontGL::NO_SHADOW,
string_chars,
- getWidth(),
+ getTextWidth(),
&right_x,
TRUE);
}