]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/treebase.cpp
Correct mistakes in wxStripExtension - correct wxString::npos. Spurred by 1073642...
[wxWidgets.git] / src / common / treebase.cpp
index 4c07404f5a347d408a4bd7f0a748cd008cd4a5fe..54b9c28d4ae1091c545761e889906da67176939f 100644 (file)
@@ -75,7 +75,18 @@ wxTreeEvent::wxTreeEvent(wxEventType commandType, int id)
            : wxNotifyEvent(commandType, id)
 {
     m_itemOld = 0l;
-    m_editCancelled = FALSE;
+    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