]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/treebase.cpp
buttonbar.cpp/.h must be in GUI_CMN_SRC/HDR as toolbkg.cpp which is in common depends...
[wxWidgets.git] / src / common / treebase.cpp
index 7b42fdd35ed71e61c7dad5d4b2ec9332e9fb47c4..a365ffc8b6099a3867d4c0744c87f2e34260fb2d 100644 (file)
@@ -120,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;
 }