From: Vadim Zeitlin Date: Sat, 6 May 2006 20:12:28 +0000 (+0000) Subject: cache best size in DoGetBestSize() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b24069f2cc15ca733ecc39f10b1683f29b28e6e8 cache best size in DoGetBestSize() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/treebase.cpp b/src/common/treebase.cpp index 7b42fdd35e..a365ffc8b6 100644 --- a/src/common/treebase.cpp +++ b/src/common/treebase.cpp @@ -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; }