]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/gbsizer.cpp
make code dealing with wxUSE_IDLEMENUUPDATES a bit more clear and avoid warning due...
[wxWidgets.git] / src / common / gbsizer.cpp
index 2a6db887569f9643318b73ca0d7e850396cce24c..bb4f660670886f2433e2c40f770f7fede4834f87 100644 (file)
@@ -580,7 +580,7 @@ void wxGridBagSizer::AdjustForOverflow()
         {
             wxGBPosition pos(row,col);
             wxGBSizerItem* item = FindItemAtPosition(pos);
-            if ( !item || !item->ShouldAccountFor() )
+            if ( !item || !item->IsShown() )
                 continue;
 
             int endrow, endcol;
@@ -623,7 +623,7 @@ void wxGridBagSizer::AdjustForOverflow()
         {
             wxGBPosition pos(row,col);
             wxGBSizerItem* item = FindItemAtPosition(pos);
-            if ( !item || !item->ShouldAccountFor() )
+            if ( !item || !item->IsShown() )
                 continue;
 
             int endrow, endcol;