fix crash in wxRadioBox creation due to its DoGetBestSize() now being called from the base class Create(), before m_radioButtons are created

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-10-31 12:17:55 +00:00
parent 7aa920b5a5
commit 04988ec423

View File

@@ -323,7 +323,7 @@ void wxRadioBox::SendNotificationEvent()
unsigned int wxRadioBox::GetCount() const
{
return m_radioButtons->GetCount();
return m_radioButtons ? m_radioButtons->GetCount() : 0u;
}
void wxRadioBox::SetString(unsigned int item, const wxString& label)