summaryrefslogtreecommitdiff
path: root/indra/llui/lltextbase.cpp
diff options
context:
space:
mode:
authorMike Antipov <mantipov@productengine.com>2009-11-24 13:17:19 +0200
committerMike Antipov <mantipov@productengine.com>2009-11-24 13:17:19 +0200
commit0ef5b128aa4076be7cad424337d52ca5577aebdf (patch)
treecc7e0503186284be8d594aa4657ff3b9da4a70ed /indra/llui/lltextbase.cpp
parentc004ddeab2b373f92f66f599ac91b0c17ac0202a (diff)
Work on critical sub-task EXT-2615 (IM Chat History is severely broken)
-- Improved calculating of the LLTextBase::mContentsRect to take into account "left" coordinate. Previous implementation just ignored it. --HG-- branch : product-engine
Diffstat (limited to 'indra/llui/lltextbase.cpp')
-rw-r--r--indra/llui/lltextbase.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp
index e210667764..ab1006ffd7 100644
--- a/indra/llui/lltextbase.cpp
+++ b/indra/llui/lltextbase.cpp
@@ -2060,16 +2060,16 @@ void LLTextBase::updateRects()
mContentsRect.unionWith(line_iter->mRect);
}
- mContentsRect.mLeft = 0;
+ S32 delta_pos_x = -mContentsRect.mLeft;
mContentsRect.mTop += mVPad;
S32 delta_pos = -mContentsRect.mBottom;
// move line segments to fit new document rect
for (line_list_t::iterator it = mLineInfoList.begin(); it != mLineInfoList.end(); ++it)
{
- it->mRect.translate(0, delta_pos);
+ it->mRect.translate(delta_pos_x, delta_pos);
}
- mContentsRect.translate(0, delta_pos);
+ mContentsRect.translate(delta_pos_x, delta_pos);
}
// update document container dimensions according to text contents