]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/checkbox.cpp
Applied patch [ 1192917 ] Grids with no row or col headers cause AV under wxGTK
[wxWidgets.git] / src / os2 / checkbox.cpp
index 547270a72da9f44657407e29751dcb6498a055f0..e4df8924462741969f23333aa2d434c61930f489 100644 (file)
@@ -106,7 +106,8 @@ void wxCheckBox::SetLabel(
   const wxString&                   rsLabel
 )
 {
-    ::WinSetWindowText(GetHwnd(), (PSZ)rsLabel.c_str());
+    wxString                         sLabel=::wxPMTextToLabel(rsLabel);
+    ::WinSetWindowText(GetHwnd(), (PSZ)sLabel.c_str());
 } // end of wxCheckBox::SetLabel
 
 wxSize wxCheckBox::DoGetBestSize() const