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:
parent
23b1018f14
commit
d44444105b
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user