From: Julian Smart Date: Wed, 17 May 2006 08:59:36 +0000 (+0000) Subject: Combobox may not be fully created at this point X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/00dff4d222ab3525d04c819142d44159b9b52f01?ds=inline Combobox may not be fully created at this point git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/controls/controls.cpp b/samples/controls/controls.cpp index 9275dc8041..a5723dce31 100644 --- a/samples/controls/controls.cpp +++ b/samples/controls/controls.cpp @@ -1358,6 +1358,9 @@ void MyPanel::OnChoiceButtons( wxCommandEvent &event ) void MyPanel::OnCombo( wxCommandEvent &event ) { + if (!m_combo) + return; + wxLogMessage(_T("EVT_COMBOBOX: item %d/%d (event/control), string \"%s\"/\"%s\""), (int)event.GetInt(), m_combo->GetSelection(),