Minor doc tweaks plus major wxTreeCtrl bug fixed (double deletion of tree items

in some circumstances)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1911 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1999-03-12 16:52:29 +00:00
parent 81f1bb400a
commit 8162b84897
3 changed files with 1 additions and 11 deletions

View File

@@ -1048,6 +1048,7 @@ bool wxTreeCtrl::MSWNotify(WXWPARAM wParam, WXLPARAM lParam, WXLPARAM *result)
NM_TREEVIEW* tv = (NM_TREEVIEW *)lParam;
wxTreeItemData *data = (wxTreeItemData *)tv->itemOld.lParam;
delete data; // may be NULL, ok
processed = TRUE; // Make sure we don't get called twice
}
*result = !event.IsAllowed();