simplified code (removed 2 unnecessary tests) in CalcMin(), no real changes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2005-03-14 22:26:56 +00:00
parent 23b1018f14
commit d44444105b

View File

@ -1469,11 +1469,12 @@ wxSize wxBoxSizer::CalcMin()
{
wxSizerItem *item = node->GetData();
if (item->IsShown())
if ( item->IsShown() )
{
item->CalcMin(); // result is stored in the item
if (item->IsShown() && item->GetProportion() != 0)
m_stretchable += item->GetProportion();
}
node = node->GetNext();
}