summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorrichard <none@none>2009-11-17 14:37:55 -0800
committerrichard <none@none>2009-11-17 14:37:55 -0800
commitd2fe3e808981c629c46b6df82d35fa073bef1906 (patch)
treed75464b9c78d083744901c3abb93ffd9c109e706 /indra/llui
parent630bb056413133d0e6ea58d00e148119d4fc5e3f (diff)
parentcf1b7ef5e798533cb29213f84209d5f2abe996f0 (diff)
merge
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/lltextbase.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp
index caaf47240f..cd795282f9 100644
--- a/indra/llui/lltextbase.cpp
+++ b/indra/llui/lltextbase.cpp
@@ -2380,6 +2380,14 @@ bool LLNormalTextSegment::getDimensions(S32 first_char, S32 num_chars, S32& widt
width = mStyle->getFont()->getWidth(text.c_str(), mStart + first_char, num_chars);
// if last character is a newline, then return true, forcing line break
llwchar last_char = text[mStart + first_char + num_chars - 1];
+
+ LLUIImagePtr image = mStyle->getImage();
+ if( image.notNull())
+ {
+ width += image->getWidth();
+ height = llmax(height, image->getHeight());
+ }
+
return num_chars >= 1 && last_char == '\n';
}