From 1eb20d4a0832f53fbbcf93ed291273fce2df45d0 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 16 Jul 1998 06:47:27 +0000 Subject: [PATCH] Inserted an else that seemed to be missing. (My RadioBox crashed without it...) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/radiobox.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/msw/radiobox.cpp b/src/msw/radiobox.cpp index 81467bcfb3..5d50a6c2f0 100644 --- a/src/msw/radiobox.cpp +++ b/src/msw/radiobox.cpp @@ -116,7 +116,8 @@ bool wxRadioBox::Create(wxWindow *parent, wxWindowID id, const wxString& title, m_noRowsOrCols = majorDim; if (majorDim==0) m_majorDim = n ; - m_majorDim = majorDim ; + else // Seemed to make sense to put this 'else' here... (RD) + m_majorDim = majorDim ; long msStyle = GROUP_FLAGS; @@ -321,7 +322,7 @@ bool wxRadioBox::Create(wxWindow *parent, wxWindowID id, const wxString& title, wxRadioBox::~wxRadioBox(void) { m_isBeingDeleted = TRUE; - + if (m_radioButtons) { int i; @@ -642,7 +643,7 @@ void wxRadioBox::Enable(int item, bool enable) void wxRadioBox::Enable(bool enable) { wxControl::Enable(enable); - + int i; for (i = 0; i < m_noItems; i++) ::EnableWindow((HWND) m_radioButtons[i], enable); @@ -733,7 +734,7 @@ void wxRadioBox::SetLabelFont(wxFont *font) if (font) { font->RealizeResource(); - + if (font->GetResourceHandle()) SendMessage(hWnd, WM_SETFONT, (WPARAM)font->GetResourceHandle(),TRUE);