From 04988ec423394b7f9464bb360f851b9d99617f48 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 31 Oct 2006 12:17:55 +0000 Subject: [PATCH] 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 --- src/msw/radiobox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/radiobox.cpp b/src/msw/radiobox.cpp index 95f6f127c4..c8f410dc26 100644 --- a/src/msw/radiobox.cpp +++ b/src/msw/radiobox.cpp @@ -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) -- 2.45.2