diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewertexteditor.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/linden/indra/newview/llviewertexteditor.cpp b/linden/indra/newview/llviewertexteditor.cpp index 1dda1ca..3e2cc19 100644 --- a/linden/indra/newview/llviewertexteditor.cpp +++ b/linden/indra/newview/llviewertexteditor.cpp | |||
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2001&license=viewergpl$ | 5 | * $LicenseInfo:firstyear=2001&license=viewergpl$ |
6 | * | 6 | * |
7 | * Copyright (c) 2001-2008, Linden Research, Inc. | 7 | * Copyright (c) 2001-2009, Linden Research, Inc. |
8 | * | 8 | * |
9 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
10 | * The source code in this file ("Source Code") is provided by Linden Lab | 10 | * The source code in this file ("Source Code") is provided by Linden Lab |
@@ -616,7 +616,10 @@ BOOL LLViewerTextEditor::handleToolTip(S32 x, S32 y, std::string& msg, LLRect* s | |||
616 | LLView *viewp = *child_iter; | 616 | LLView *viewp = *child_iter; |
617 | S32 local_x = x - viewp->getRect().mLeft; | 617 | S32 local_x = x - viewp->getRect().mLeft; |
618 | S32 local_y = y - viewp->getRect().mBottom; | 618 | S32 local_y = y - viewp->getRect().mBottom; |
619 | if( viewp->handleToolTip(local_x, local_y, msg, sticky_rect_screen ) ) | 619 | if( viewp->pointInView(local_x, local_y) |
620 | && viewp->getVisible() | ||
621 | && viewp->getEnabled() | ||
622 | && viewp->handleToolTip(local_x, local_y, msg, sticky_rect_screen ) ) | ||
620 | { | 623 | { |
621 | return TRUE; | 624 | return TRUE; |
622 | } | 625 | } |