From: Vadim Zeitlin Date: Mon, 14 Mar 2005 22:26:56 +0000 (+0000) Subject: simplified code (removed 2 unnecessary tests) in CalcMin(), no real changes X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d44444105bea5beaab0a39f7624b8ce126dd2384 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 --- diff --git a/src/common/sizer.cpp b/src/common/sizer.cpp index 51fb38a926..f6ef4e0cbc 100644 --- a/src/common/sizer.cpp +++ b/src/common/sizer.cpp @@ -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(); }