X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2461cfa0d9b786a26a783237bca38c920efecb51..12cca26a83405b5f7f29ce2c44c5f965d07ceafc:/src/os2/radiobut.cpp diff --git a/src/os2/radiobut.cpp b/src/os2/radiobut.cpp index e0eaed2b65..3a5f166c67 100644 --- a/src/os2/radiobut.cpp +++ b/src/os2/radiobut.cpp @@ -201,7 +201,7 @@ void wxRadioButton::SetFocus() // generates BN_CLICKED which leads to showing another dialog and so on // without end! // - // to aviod this, we drop the pseudo BN_CLICKED events generated when the + // to avoid this, we drop the pseudo BN_CLICKED events generated when the // button gains focus m_bFocusJustSet = TRUE; @@ -212,7 +212,8 @@ void wxRadioButton::SetLabel( const wxString& rsLabel ) { - ::WinSetWindowText((HWND)GetHWND(), (const char *)rsLabel.c_str()); + wxString sLabel = ::wxPMTextToLabel(rsLabel); + ::WinSetWindowText((HWND)GetHWND(), (const char *)sLabel.c_str()); } // end of wxRadioButton::SetLabel void wxRadioButton::SetValue(