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