X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cc11cc69186f64a7729cd3b5a892dd487b9f6f0c..85284ca4b226d9a1ab6bed26c5eaa480543649d5:/src/univ/radiobox.cpp diff --git a/src/univ/radiobox.cpp b/src/univ/radiobox.cpp index 6a3d3f50bd..cff69702fb 100644 --- a/src/univ/radiobox.cpp +++ b/src/univ/radiobox.cpp @@ -147,11 +147,11 @@ bool wxRadioBox::Create(wxWindow *parent, if ( !(style & (wxRA_LEFTTORIGHT | wxRA_TOPTOBOTTOM)) ) { // horizontal radiobox use left to right layout - if ( style & wxRA_HORIZONTAL ) + if ( style & wxRA_SPECIFY_COLS ) { style |= wxRA_LEFTTORIGHT; } - else if ( style & wxRA_VERTICAL ) + else if ( style & wxRA_SPECIFY_ROWS ) { style |= wxRA_TOPTOBOTTOM; } @@ -160,7 +160,7 @@ bool wxRadioBox::Create(wxWindow *parent, wxFAIL_MSG( _T("you must specify wxRA_XXX style!") ); // use default - style = wxRA_HORIZONTAL | wxRA_LEFTTORIGHT; + style = wxRA_SPECIFY_COLS | wxRA_LEFTTORIGHT; } }