diff options
author | Merov Linden <merov@lindenlab.com> | 2011-10-11 16:20:02 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2011-10-11 16:20:02 -0700 |
commit | dacfe7b2bdc845640f18db33992924033494e470 (patch) | |
tree | f2104c7ceb428cf73b6b03621b2272b079fed2ce /indra/llui/lltoolbar.cpp | |
parent | 682609d254fb973cfa267923b69c5e06b7efd7e1 (diff) |
EXP-1300 : Fix caret position in bottom bar, fix misplacement when moving within same toolbar, suppress visible caret in some situations, no caret if toolbar empty
Diffstat (limited to 'indra/llui/lltoolbar.cpp')
-rw-r--r-- | indra/llui/lltoolbar.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/llui/lltoolbar.cpp b/indra/llui/lltoolbar.cpp index d4633d7c3b..a1ea4ba18b 100644 --- a/indra/llui/lltoolbar.cpp +++ b/indra/llui/lltoolbar.cpp @@ -425,12 +425,12 @@ int LLToolBar::getRankFromPosition(S32& x, S32& y) } if (it_button != end_button) { - x = button_rect.mRight + dx; + x = button_rect.mLeft + dx; y = button_rect.mTop + dy; } else { - x = button_rect.mLeft + dx; + x = button_rect.mRight + dx; y = button_rect.mBottom + dy; } @@ -655,6 +655,7 @@ void LLToolBar::draw() LLUICtrl::draw(); caret->setVisible(FALSE); + mDragAndDropTarget = false; } void LLToolBar::reshape(S32 width, S32 height, BOOL called_from_parent) |