fixed bug in mouse handling

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@8336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-09-12 08:29:02 +00:00
parent 6c35149269
commit 95e98de61b

View File

@@ -2305,16 +2305,19 @@ void wxTreeCtrl::OnMouse( wxMouseEvent &event )
nevent.SetEventObject(this);
GetEventHandler()->ProcessEvent(nevent);
}
else if ( event.LeftUp() && m_lastOnSame )
else if ( event.LeftUp() )
{
if ( (item == m_current) &&
(flags & wxTREE_HITTEST_ONITEMLABEL) &&
HasFlag(wxTR_EDIT_LABELS) )
if ( m_lastOnSame )
{
m_renameTimer->Start( 100, TRUE );
}
if ( (item == m_current) &&
(flags & wxTREE_HITTEST_ONITEMLABEL) &&
HasFlag(wxTR_EDIT_LABELS) )
{
m_renameTimer->Start( 100, TRUE );
}
m_lastOnSame = FALSE;
m_lastOnSame = FALSE;
}
}
else
{