Corrected drag effect for tree control.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31288 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2005-01-07 22:09:08 +00:00
parent c575e45a24
commit daa7ae0c30

View File

@@ -3102,7 +3102,7 @@ void wxGenericTreeCtrl::OnMouse( wxMouseEvent &event )
CaptureMouse();
}
}
else if ( event.Moving() )
else if ( event.Dragging() )
{
if ( item != m_dropTarget )
{
@@ -3114,7 +3114,7 @@ void wxGenericTreeCtrl::OnMouse( wxMouseEvent &event )
// highlight the current drop target if any
DrawDropEffect(m_dropTarget);
#if defined( __WXMSW__ ) || defined(__WXMAC__)
#if defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXGTK20__)
Update();
#else
wxYieldIfNeeded();