summaryrefslogtreecommitdiff
path: root/indra/llui/lltextbase.cpp
diff options
context:
space:
mode:
authorMike Antipov <mantipov@productengine.com>2010-07-30 13:33:19 +0300
committerMike Antipov <mantipov@productengine.com>2010-07-30 13:33:19 +0300
commite64b281dd674d3230d83aba0ab622ea48d2ae594 (patch)
treec4ad5f8ba3c7ff6456a04fa9e22e3844074dcb54 /indra/llui/lltextbase.cpp
parent7fcca83169287b5011b5b5a0193456e9a789619c (diff)
parent33ebc9674926eb0fd5679ae8e41d05d790b03de1 (diff)
Merge from default branch
--HG-- branch : product-engine
Diffstat (limited to 'indra/llui/lltextbase.cpp')
-rw-r--r--indra/llui/lltextbase.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp
index a580345b6c..4bcf7e6980 100644
--- a/indra/llui/lltextbase.cpp
+++ b/indra/llui/lltextbase.cpp
@@ -1029,8 +1029,10 @@ void LLTextBase::draw()
LLUICtrl::draw();
{
- // only clip if we support scrolling or have word wrap turned off
- LLLocalClipRect clip(doc_rect, !getWordWrap() || mScroller != NULL);
+ // only clip if we support scrolling...
+ // since convention is that text boxes never vertically truncate their contents
+ // regardless of rect bounds
+ LLLocalClipRect clip(doc_rect, mScroller != NULL);
drawSelectionBackground();
drawText();
drawCursor();