diff options
| author | Dessie Linden <dessie@lindenlab.com> | 2010-06-14 07:58:04 -0700 |
|---|---|---|
| committer | Dessie Linden <dessie@lindenlab.com> | 2010-06-14 07:58:04 -0700 |
| commit | d1ecffeb8e4b02bc5d796872e61eebf84e598983 (patch) | |
| tree | b995b4bd4c1cc4aaef25dbd1f63eb72cde7b748b /indra/llui/lltextbase.cpp | |
| parent | d3418e5e65f7845f89b5ce2019bd635861573ed3 (diff) | |
| parent | e96544ff266849207adfc3823adfc2dcfe42ce72 (diff) | |
Merged from viewer-release
Diffstat (limited to 'indra/llui/lltextbase.cpp')
| -rw-r--r-- | indra/llui/lltextbase.cpp | 2 |
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 ); |
