]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/treebase.cpp
fixed the menu bug introduced by the previous commit
[wxWidgets.git] / src / common / treebase.cpp
index dfa45202e5f962508fc258cf487b291ab86a0898..7c83963ef97c5acf5dba0aec0bea23fd8db0b66f 100644 (file)
@@ -67,10 +67,12 @@ DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_END_DRAG)
 // Tree event
 // ----------------------------------------------------------------------------
 
+IMPLEMENT_DYNAMIC_CLASS(wxTreeEvent, wxNotifyEvent)
+
+
 wxTreeEvent::wxTreeEvent(wxEventType commandType, int id)
            : wxNotifyEvent(commandType, id)
 {
-    m_code = 0;
     m_itemOld = 0l;
 }