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:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user