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;