From: Mart Raudsepp Date: Thu, 8 Oct 1998 12:05:19 +0000 (+0000) Subject: error if a radiobox is horizontal:(change wxRA_VERTICAL to wxRA_HORIZONTAL) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/42d819d67e64340d4a02ba12d3fbb221975e589a error if a radiobox is horizontal:(change wxRA_VERTICAL to wxRA_HORIZONTAL) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/radiobox.cpp b/src/msw/radiobox.cpp index 82ecdf8600..4808659652 100644 --- a/src/msw/radiobox.cpp +++ b/src/msw/radiobox.cpp @@ -435,7 +435,7 @@ void wxRadioBox::SetSize(int x, int y, int width, int height, int sizeFlags) int nbHor,nbVer; - if (m_windowStyle & wxRA_VERTICAL) + if (m_windowStyle & wxRA_HORIZONTAL) { nbVer = m_majorDim ; nbHor = (m_noItems+m_majorDim-1)/m_majorDim ; @@ -509,7 +509,7 @@ void wxRadioBox::SetSize(int x, int y, int width, int height, int sizeFlags) } MoveWindow((HWND) m_radioButtons[i],x_offset,y_offset,eachWidth,eachHeight,TRUE); - if (m_windowStyle & wxRA_VERTICAL) + if (m_windowStyle & wxRA_HORIZONTAL) { y_offset += maxHeight; if (m_radioWidth[0]>0)