]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/radiobut.cpp
missing commit
[wxWidgets.git] / src / univ / radiobut.cpp
index cf209a43979e6a199ea81c5836c4507ec0e1f0f9..80d51339dd495d35504f9790879cb1a9e2bc5df2 100644 (file)
@@ -135,7 +135,7 @@ void wxRadioButton::ClearValue()
 
 void wxRadioButton::SendEvent()
 {
-    wxCommandEvent event(wxEVT_COMMAND_RADIOBUTTON_SELECTED, GetId());
+    wxCommandEvent event(wxEVT_RADIOBUTTON, GetId());
     InitCommandEvent(event);
     event.SetInt(IsChecked());
     Command(event);
@@ -148,7 +148,7 @@ void wxRadioButton::SendEvent()
 wxSize wxRadioButton::GetBitmapSize() const
 {
     wxBitmap bmp = GetBitmap(State_Normal, Status_Checked);
-    return bmp.Ok() ? wxSize(bmp.GetWidth(), bmp.GetHeight())
+    return bmp.IsOk() ? wxSize(bmp.GetWidth(), bmp.GetHeight())
                     : GetRenderer()->GetRadioBitmapSize();
 }