diff --git a/src/os2/radiobox.cpp b/src/os2/radiobox.cpp index 9eb243c8fc..67d6434a32 100644 --- a/src/os2/radiobox.cpp +++ b/src/os2/radiobox.cpp @@ -290,7 +290,7 @@ bool wxRadioBox::Create( m_nSelectedButton = -1; m_nNoItems = 0; - SetMajorDim(majorDim == 0 ? n : majorDim, lStyle); + SetMajorDim(nMajorDim == 0 ? nNum : nMajorDim, lStyle); m_nNoRowsOrCols = nMajorDim; //