From 42e29558db8e708f1cc59f8564710b4b7f70b7f3 Mon Sep 17 00:00:00 2001 From: Yuri Chebotarev Date: Tue, 27 Oct 2009 18:12:27 +0200 Subject: EXT-1709 Nearby Chat: Avatar context menu can be triggered on avatar's icon only --HG-- branch : product-engine --- indra/newview/llchathistory.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/indra/newview/llchathistory.cpp b/indra/newview/llchathistory.cpp index 8d16f8e1f9..f6cf61a13a 100644 --- a/indra/newview/llchathistory.cpp +++ b/indra/newview/llchathistory.cpp @@ -122,6 +122,14 @@ public: LLUICtrl* child = findChild(name); if(!child) return false; + + LLView* parent = child->getParent(); + if(parent!=this) + { + x-=parent->getRect().mLeft; + y-=parent->getRect().mBottom; + } + S32 local_x = x - child->getRect().mLeft ; S32 local_y = y - child->getRect().mBottom ; return child->pointInView(local_x, local_y); -- cgit v1.2.3