diff options
author | Jacek Antonelli | 2009-06-13 13:17:14 -0500 |
---|---|---|
committer | Jacek Antonelli | 2009-06-13 13:17:20 -0500 |
commit | 0517fe4322443bdc317f8185590a63134e3f8394 (patch) | |
tree | 942c9c26d0792accc928010a113d123c5409659b /linden/indra/llui/llview.cpp | |
parent | Second Life viewer sources 1.23.2-RC (diff) | |
download | meta-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.cpp | 27 |
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 | ||