aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/llview.cpp
diff options
context:
space:
mode:
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