summaryrefslogtreecommitdiff
path: root/indra/llui/lltextbase.cpp
diff options
context:
space:
mode:
authorDessie Linden <dessie@lindenlab.com>2010-06-14 07:58:04 -0700
committerDessie Linden <dessie@lindenlab.com>2010-06-14 07:58:04 -0700
commit0a6761820e49d139c8e5068a82b32df84db5b611 (patch)
treeb995b4bd4c1cc4aaef25dbd1f63eb72cde7b748b /indra/llui/lltextbase.cpp
parent0022aff49d21f932f16fbd8131523ab47c56759f (diff)
parente96544ff266849207adfc3823adfc2dcfe42ce72 (diff)
Merged from viewer-release
Diffstat (limited to 'indra/llui/lltextbase.cpp')
-rw-r--r--indra/llui/lltextbase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp
index 72f3a14822..1a4b804ce4 100644
--- a/indra/llui/lltextbase.cpp
+++ b/indra/llui/lltextbase.cpp
@@ -2791,7 +2791,7 @@ bool LLImageTextSegment::getDimensions(S32 first_char, S32 num_chars, S32& width
height = llceil(mStyle->getFont()->getLineHeight());;
LLUIImagePtr image = mStyle->getImage();
- if( image.notNull())
+ if( num_chars>0 && image.notNull())
{
width += image->getWidth() + IMAGE_HPAD;
height = llmax(height, image->getHeight() + IMAGE_HPAD );