]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/radiobox.cpp
no changes, just de TABified
[wxWidgets.git] / src / msw / radiobox.cpp
index c8f410dc26625d316a558778325451b353d0f0cd..45424eb27e37cde7784ba9935b21ff6ddcde787d 100644 (file)
@@ -505,6 +505,13 @@ wxSize wxRadioBox::GetTotalButtonSize(const wxSize& sizeBtn) const
 
 wxSize wxRadioBox::DoGetBestSize() const
 {
+    if ( !m_radioButtons )
+    {
+        // if we're not fully initialized yet, we can't meaningfully compute
+        // our best size, we'll do it later
+        return wxSize(1, 1);
+    }
+
     wxSize best = GetTotalButtonSize(GetMaxButtonSize());
     CacheBestSize(best);
     return best;