From d3cd1c03a33a98da49856840ba7c51e1bf17f1ea Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 4 May 2006 16:12:18 +0000 Subject: [PATCH] only take into account visible children in DoLayout() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/toplvcmn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/toplvcmn.cpp b/src/common/toplvcmn.cpp index c9eed594e9..bf2742a04e 100644 --- a/src/common/toplvcmn.cpp +++ b/src/common/toplvcmn.cpp @@ -338,7 +338,7 @@ void wxTopLevelWindowBase::DoLayout() } // do we have any children at all? - if ( child ) + if ( child && child->IsShown() ) { // exactly one child - set it's size to fill the whole frame int clientW, clientH;