EXT-7726 FIX didn't increase width if image segment didn't fit current line
reviewed by Richard Nelson at https://codereview.productengine.com/secondlife/r/557/ --HG-- branch : product-enginemeow-7.2.2
parent
9a3432857d
commit
0904b13cbb
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in New Issue