Correction to minimal size of wxSizers.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2000-04-15 17:35:24 +00:00
parent ae85cb4b2c
commit a053a88994

View File

@@ -132,7 +132,7 @@ wxSize wxSizerItem::CalcMin()
wxSize ret; wxSize ret;
if (IsSizer()) if (IsSizer())
{ {
ret = m_sizer->CalcMin(); ret = m_sizer->GetMinSize();
// if we have to preserve aspect ratio _AND_ this is // if we have to preserve aspect ratio _AND_ this is
// the first-time calculation, consider ret to be initial size // the first-time calculation, consider ret to be initial size
if ((m_flag & wxSHAPED) && !m_ratio) SetRatio(ret); if ((m_flag & wxSHAPED) && !m_ratio) SetRatio(ret);