]> git.saurik.com Git - wxWidgets.git/commitdiff
fix crash in wxRadioBox creation due to its DoGetBestSize() now being called from...
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 31 Oct 2006 12:17:55 +0000 (12:17 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 31 Oct 2006 12:17:55 +0000 (12:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/radiobox.cpp

index 95f6f127c47762f878edb580a24af2b73e4e5ccf..c8f410dc26625d316a558778325451b353d0f0cd 100644 (file)
@@ -323,7 +323,7 @@ void wxRadioBox::SendNotificationEvent()
 
 unsigned int wxRadioBox::GetCount() const
 {
 
 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)
 }
 
 void wxRadioBox::SetString(unsigned int item, const wxString& label)