]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/treectlg.cpp
Source cleaning: whitespaces, tabs, -1/wxNOT_FOUND, TRUE/true, FALSE/false.
[wxWidgets.git] / src / generic / treectlg.cpp
index dd4fdecff991dc19755d775cb3348ad253c474be..3d35e8dfa0981e0e74e59f7a05880725d5a6380b 100644 (file)
@@ -2884,8 +2884,6 @@ void wxGenericTreeCtrl::Edit( const wxTreeItemId& item )
         return;
     }
 
-    m_itemEdited = itemEdit;
-
     // We have to call this here because the label in
     // question might just have been added and no screen
     // update taken place.
@@ -3478,6 +3476,15 @@ void wxGenericTreeCtrl::OnGetToolTip( wxTreeEvent &event )
 }
 
 
+wxSize wxGenericTreeCtrl::DoGetBestSize() const
+{
+    // something is better than nothing...
+    // 100x80 is what the MSW version will get from the default
+    // wxControl::DoGetBestSize
+    return wxSize(100,80);
+}
+
+
 // NOTE: If using the wxListBox visual attributes works everywhere then this can
 // be removed, as well as the #else case below.
 #define _USE_VISATTR 0