From 23c618498ba339a11bdb0c7ad8a9287a545052a3 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 22 Nov 2002 22:51:57 +0000 Subject: [PATCH] don't return wxDefaultSize from GetBestSize() under any circumstances (reverted part of 1.123.2.2 change) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/wincmn.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index c77276d7a2..7c40f7ce74 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -574,16 +574,7 @@ wxSize wxWindowBase::DoGetBestSize() const { // for a generic window there is no natural best size - just use the // current one - //return GetSize(); - - // Unfortunately, the above causes problems for code that expects - // BestSize to be the minimal unmangled size of the window. (eg. - // the window may grow, but BestSize will never suggest it could - // be smaller). Return instead something more indicative of the - // fact there is no reasonable answer to be given. Anything expecting - // the current size in that case should check for this and request - // it specifically. - return wxDefaultSize; + return GetSize(); } }