]> git.saurik.com Git - wxWidgets.git/commitdiff
No changes, just remove redundant code.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 27 Oct 2011 22:48:46 +0000 (22:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 27 Oct 2011 22:48:46 +0000 (22:48 +0000)
Don't call FindToolByPosition() again in wxAuiToolBar::OnLeftUp() when we just
called it above.

Closes #13600.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/aui/auibar.cpp

index a64ed0cce5a5074148e97538111fb7f9194cc7ca..684cfdd9537e06503fe8a59ab6d923536d18680c 100644 (file)
@@ -2601,9 +2601,6 @@ void wxAuiToolBar::OnLeftUp(wxMouseEvent& evt)
     }
     else
     {
     }
     else
     {
-        wxAuiToolBarItem* hit_item;
-        hit_item = FindToolByPosition(evt.GetX(), evt.GetY());
-
         if (m_action_item && hit_item == m_action_item)
         {
             UnsetToolTip();
         if (m_action_item && hit_item == m_action_item)
         {
             UnsetToolTip();