]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/radiobox.cpp
we need to output \r\n on MSW
[wxWidgets.git] / samples / widgets / radiobox.cpp
index 612c3fe51544a704c7775b288e09934fd1d40238..4967b10661f600d88499f454e77c860a99845913 100644 (file)
@@ -384,10 +384,12 @@ void RadioWidgetsPage::OnCheckOrRadioBox(wxCommandEvent& WXUNUSED(event))
 void RadioWidgetsPage::OnRadioBox(wxCommandEvent& event)
 {
     int sel = m_radio->GetSelection();
+    int event_sel = event.GetSelection();
+    wxUnusedVar(event_sel);
 
     wxLogMessage(_T("Radiobox selection changed, now %d"), sel);
 
-    wxASSERT_MSG( sel == event.GetSelection(),
+    wxASSERT_MSG( sel == event_sel,
                   _T("selection should be the same in event and radiobox") );
 
     m_textCurSel->SetValue(wxString::Format(_T("%d"), sel));