aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/llview.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2009-06-13 13:17:14 -0500
committerJacek Antonelli2009-06-13 13:17:20 -0500
commit0517fe4322443bdc317f8185590a63134e3f8394 (patch)
tree942c9c26d0792accc928010a113d123c5409659b /linden/indra/llui/llview.cpp
parentSecond Life viewer sources 1.23.2-RC (diff)
downloadmeta-impy-0517fe4322443bdc317f8185590a63134e3f8394.zip
meta-impy-0517fe4322443bdc317f8185590a63134e3f8394.tar.gz
meta-impy-0517fe4322443bdc317f8185590a63134e3f8394.tar.bz2
meta-impy-0517fe4322443bdc317f8185590a63134e3f8394.tar.xz
Second Life viewer sources 1.23.3-RC
Diffstat (limited to '')
-rw-r--r--linden/indra/llui/llview.cpp27
1 files changed, 12 insertions, 15 deletions
diff --git a/linden/indra/llui/llview.cpp b/linden/indra/llui/llview.cpp
index 444922a..7047afc 100644
--- a/linden/indra/llui/llview.cpp
+++ b/linden/indra/llui/llview.cpp
@@ -741,23 +741,20 @@ BOOL LLView::handleToolTip(S32 x, S32 y, std::string& msg, LLRect* sticky_rect_s
741 741
742 // don't allow any siblings to handle this event 742 // don't allow any siblings to handle this event
743 // even if we don't have a tooltip 743 // even if we don't have a tooltip
744 if (getMouseOpaque() || show_names_text_box) 744 if (blockMouseEvent(x, y) || show_names_text_box)
745 { 745 {
746 handled = TRUE; 746 if(!tool_tip.empty())
747 } 747 {
748 748 msg = tool_tip;
749 if(!tool_tip.empty())
750 {
751 msg = tool_tip;
752 749
753 // Convert rect local to screen coordinates 750 // Convert rect local to screen coordinates
754 localPointToScreen( 751 localPointToScreen(
755 0, 0, 752 0, 0,
756 &(sticky_rect_screen->mLeft), &(sticky_rect_screen->mBottom) ); 753 &(sticky_rect_screen->mLeft), &(sticky_rect_screen->mBottom) );
757 localPointToScreen( 754 localPointToScreen(
758 mRect.getWidth(), mRect.getHeight(), 755 mRect.getWidth(), mRect.getHeight(),
759 &(sticky_rect_screen->mRight), &(sticky_rect_screen->mTop) ); 756 &(sticky_rect_screen->mRight), &(sticky_rect_screen->mTop) );
760 757 }
761 handled = TRUE; 758 handled = TRUE;
762 } 759 }
763 760