First release mouse, then emit event.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2006-02-27 21:49:48 +00:00
parent 913fffd75a
commit f0bc6afbbd

View File

@ -3144,6 +3144,8 @@ void wxGenericTreeCtrl::OnMouse( wxMouseEvent &event )
}
else if ( (event.LeftUp() || event.RightUp()) && m_isDragging )
{
ReleaseMouse();
// erase the highlighting
DrawDropEffect(m_dropTarget);
@ -3166,8 +3168,6 @@ void wxGenericTreeCtrl::OnMouse( wxMouseEvent &event )
m_isDragging = false;
m_dropTarget = (wxGenericTreeItem *)NULL;
ReleaseMouse();
SetCursor(m_oldCursor);
#if defined( __WXMSW__ ) || defined(__WXMAC__)