diff options
| author | James Cook <james@lindenlab.com> | 2010-03-10 15:46:45 -0800 |
|---|---|---|
| committer | James Cook <james@lindenlab.com> | 2010-03-10 15:46:45 -0800 |
| commit | 60799effaee5dd9696704342e9c8a35881d22583 (patch) | |
| tree | 28a10ccdc563ca4795d4018270ef36d50a6c3a1c /indra/llui/lltextbase.cpp | |
| parent | 0ee6a6025cba2f63c5c33c20870f67afd62f6372 (diff) | |
| parent | 347585cf975afac59ec6b9960e093acd015627f5 (diff) | |
Merge
Diffstat (limited to 'indra/llui/lltextbase.cpp')
| -rw-r--r-- | indra/llui/lltextbase.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp index 385812416d..063caae5c9 100644 --- a/indra/llui/lltextbase.cpp +++ b/indra/llui/lltextbase.cpp @@ -396,8 +396,13 @@ void LLTextBase::drawSelectionBackground() ++rect_it) { LLRect selection_rect = *rect_it; - selection_rect.translate(mVisibleTextRect.mLeft - content_display_rect.mLeft, mVisibleTextRect.mBottom - content_display_rect.mBottom); - gl_rect_2d(selection_rect, selection_color); + // Don't send empty rects to gl_rect_2d. + // Drawing degenerate rectangles seems to cause https://jira.secondlife.com/browse/EXT-6276 . + if(selection_rect.notEmpty()) + { + selection_rect.translate(mVisibleTextRect.mLeft - content_display_rect.mLeft, mVisibleTextRect.mBottom - content_display_rect.mBottom); + gl_rect_2d(selection_rect, selection_color); + } } } } |
