]> git.saurik.com Git - wxWidgets.git/commitdiff
Stop invalidating size on wxTLW
authorWłodzimierz Skiba <abx@abx.art.pl>
Fri, 3 Mar 2006 15:26:14 +0000 (15:26 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Fri, 3 Mar 2006 15:26:14 +0000 (15:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/wincmn.cpp

index 7b458dca638c885bbfdb2fc8bdaeed5ba1bb4596..09a2f046682c91ab142102578825926a54d78613 100644 (file)
@@ -446,8 +446,9 @@ void wxWindowBase::InvalidateBestSize()
     m_bestSizeCache = wxDefaultSize;
 
     // parent's best size calculation may depend on its children's
-    // best sizes, so let's invalidate it as well to be safe:
-    if (m_parent)
+    // best sizes, so let's invalidate it as well to be safe
+    // (but don't influence other wxTLWs)
+    if (m_parent && !IsTopLevel())
         m_parent->InvalidateBestSize();
 }