]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/treebase.cpp
correcting dangling refs / reuse
[wxWidgets.git] / src / common / treebase.cpp
index a3fff66b2d21549702d93ccb92564802f6f98470..54b9c28d4ae1091c545761e889906da67176939f 100644 (file)
@@ -78,5 +78,16 @@ wxTreeEvent::wxTreeEvent(wxEventType commandType, int id)
     m_editCancelled = false;
 }
 
+wxTreeEvent::wxTreeEvent(const wxTreeEvent & event)
+           : wxNotifyEvent(event)
+{
+    m_evtKey = event.m_evtKey;
+    m_item = event.m_item;
+    m_itemOld = event.m_itemOld;
+    m_pointDrag = event.m_pointDrag;
+    m_label = event.m_label;
+    m_editCancelled = event.m_editCancelled;
+}
+
 #endif // wxUSE_TREECTRL