X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/72da4057731919c6d386aa5a4cf8f3d0258bbe46..a22895511a250173cf7dd4403fc89f293a898067:/src/common/gbsizer.cpp diff --git a/src/common/gbsizer.cpp b/src/common/gbsizer.cpp index 81c88b1d3c..bb4f660670 100644 --- a/src/common/gbsizer.cpp +++ b/src/common/gbsizer.cpp @@ -580,7 +580,7 @@ void wxGridBagSizer::AdjustForOverflow() { wxGBPosition pos(row,col); wxGBSizerItem* item = FindItemAtPosition(pos); - if ( !item ) + 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 ) + if ( !item || !item->IsShown() ) continue; int endrow, endcol;