]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/toplvcmn.cpp
[ 1498016 ] 'Add wxUniv toolbar support wxTB_TEXT style' - with modifications.
[wxWidgets.git] / src / common / toplvcmn.cpp
index c9eed594e93e3219e352747484ba9685d9ff5931..bf2742a04ede00e8df7414473762532a728109d5 100644 (file)
@@ -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;