Corrected wxTreeCtrl and wxListCtrl end_label_edit event behaviour.

wxListCtrl doesn't send this event when the editing was cancelled.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21756 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2003-07-08 11:24:52 +00:00
parent aaaa609fa3
commit 865864592a
2 changed files with 32 additions and 4 deletions

View File

@@ -2928,7 +2928,7 @@ void wxGenericTreeCtrl::OnRenameCancelled(wxGenericTreeItem *item)
le.m_item = (long) item;
le.SetEventObject( this );
le.m_label = wxEmptyString;
le.m_editCancelled = FALSE;
le.m_editCancelled = TRUE;
GetEventHandler()->ProcessEvent( le );
}