summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-07-29 20:33:40 +0100
committerTofu Linden <tofu.linden@lindenlab.com>2010-07-29 20:33:40 +0100
commit9df7dd4447a48eecc4077597b7366f4e43f96c18 (patch)
tree1cbc068c31f936415b909257b9c3341b55eb578b /indra/llui
parent56bd9544ecf11b59ad350832451d3726d1f6cc98 (diff)
parentc9ea67aab0a2bc34bcabdce89a5a740710f3aae2 (diff)
merge
Diffstat (limited to 'indra/llui')
-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();