Correct the picker button best size computation.

Fix the typo in the changes of r67763.

See #13232.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67782 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2011-05-24 21:19:35 +00:00
parent 0f27b6637a
commit 6dfd1add4a

View File

@@ -129,7 +129,7 @@ void wxPickerBase::PostCreation()
const wxSize textBestSize( HasTextCtrl() ? m_text->GetBestSize() : wxSize());
wxSize pickerMinSize;
pickerMinSize.y = wxMax(pickerBestSize.y, textBestSize.y);
pickerMinSize.x = wxMax(pickerMinSize.x, pickerMinSize.y);
pickerMinSize.x = wxMax(pickerBestSize.x, pickerMinSize.y);
if ( pickerMinSize != pickerBestSize )
m_picker->SetMinSize(pickerMinSize);