fixed bug in mouse handling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2414,7 +2414,9 @@ void wxGenericTreeCtrl::OnMouse( wxMouseEvent &event )
|
|||||||
nevent.SetEventObject(this);
|
nevent.SetEventObject(this);
|
||||||
GetEventHandler()->ProcessEvent(nevent);
|
GetEventHandler()->ProcessEvent(nevent);
|
||||||
}
|
}
|
||||||
else if ( event.LeftUp() && m_lastOnSame )
|
else if ( event.LeftUp() )
|
||||||
|
{
|
||||||
|
if ( m_lastOnSame )
|
||||||
{
|
{
|
||||||
if ( (item == m_current) &&
|
if ( (item == m_current) &&
|
||||||
(flags & wxTREE_HITTEST_ONITEMLABEL) &&
|
(flags & wxTREE_HITTEST_ONITEMLABEL) &&
|
||||||
@@ -2425,6 +2427,7 @@ void wxGenericTreeCtrl::OnMouse( wxMouseEvent &event )
|
|||||||
|
|
||||||
m_lastOnSame = FALSE;
|
m_lastOnSame = FALSE;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ( event.LeftDown() )
|
if ( event.LeftDown() )
|
||||||
|
Reference in New Issue
Block a user