]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/treebase.cpp
don't delete the exiting tooltip if SetToolTip() is called with the same one
[wxWidgets.git] / src / common / treebase.cpp
index ec34814030353b6dd2b566702092bcf79eed8557..a365ffc8b6099a3867d4c0744c87f2e34260fb2d 100644 (file)
@@ -27,6 +27,7 @@
 #if wxUSE_TREECTRL
 
 #include "wx/treectrl.h"
+#include "wx/imaglist.h"
 
 // ----------------------------------------------------------------------------
 // events
@@ -119,6 +120,8 @@ wxSize wxTreeCtrlBase::DoGetBestSize() const
     // need some minimal size even for empty tree
     if ( !size.x || !size.y )
         size = wxControl::DoGetBestSize();
+    else
+        CacheBestSize(size);
 
     return size;
 }