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:
@@ -1470,10 +1470,11 @@ wxSize wxBoxSizer::CalcMin()
|
|||||||
wxSizerItem *item = node->GetData();
|
wxSizerItem *item = node->GetData();
|
||||||
|
|
||||||
if ( item->IsShown() )
|
if ( item->IsShown() )
|
||||||
|
{
|
||||||
item->CalcMin(); // result is stored in the item
|
item->CalcMin(); // result is stored in the item
|
||||||
|
|
||||||
if (item->IsShown() && item->GetProportion() != 0)
|
|
||||||
m_stretchable += item->GetProportion();
|
m_stretchable += item->GetProportion();
|
||||||
|
}
|
||||||
|
|
||||||
node = node->GetNext();
|
node = node->GetNext();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user