]> git.saurik.com Git - wxWidgets.git/commitdiff
If an item is hidden, don't check it for overflows.
authorRobin Dunn <robin@alldunn.com>
Thu, 10 Jul 2008 01:32:06 +0000 (01:32 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 10 Jul 2008 01:32:06 +0000 (01:32 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/gbsizer.cpp

index 81c88b1d3cc3eb515b7bf4fe79d974468de77e5e..2a6db887569f9643318b73ca0d7e850396cce24c 100644 (file)
@@ -580,7 +580,7 @@ void wxGridBagSizer::AdjustForOverflow()
         {
             wxGBPosition pos(row,col);
             wxGBSizerItem* item = FindItemAtPosition(pos);
-            if ( !item )
+            if ( !item || !item->ShouldAccountFor() )
                 continue;
 
             int endrow, endcol;
@@ -623,7 +623,7 @@ void wxGridBagSizer::AdjustForOverflow()
         {
             wxGBPosition pos(row,col);
             wxGBSizerItem* item = FindItemAtPosition(pos);
-            if ( !item )
+            if ( !item || !item->ShouldAccountFor() )
                 continue;
 
             int endrow, endcol;