From 27ff87da23f7e18cd4bc1212d978c3ae3c3d52fb Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Thu, 15 Aug 2002 20:48:02 +0000 Subject: [PATCH] Fix to not break GTK2 output. (wxLogMessage bug). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/controls/controls.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/samples/controls/controls.cpp b/samples/controls/controls.cpp index 8dc971ecbc..3093e61f2f 100644 --- a/samples/controls/controls.cpp +++ b/samples/controls/controls.cpp @@ -1139,10 +1139,12 @@ void MyPanel::OnCombo( wxCommandEvent &event ) m_text->AppendText( "\n" ); } -void MyPanel::OnComboTextChanged(wxCommandEvent& WXUNUSED(event)) +void MyPanel::OnComboTextChanged(wxCommandEvent& event) { - wxLogMessage(_T("Text in the combobox changed: now is '%s'."), - m_combo->GetValue().c_str()); + wxString str; + str.Printf( wxT("Text in the combobox changed: now is '%s'."), + event.GetString().c_str() ); + wxLogMessage( str.c_str() ); } void MyPanel::OnComboTextEnter(wxCommandEvent& WXUNUSED(event)) -- 2.47.2