]> git.saurik.com Git - wxWidgets.git/commitdiff
Combobox may not be fully created at this point
authorJulian Smart <julian@anthemion.co.uk>
Wed, 17 May 2006 08:59:36 +0000 (08:59 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 17 May 2006 08:59:36 +0000 (08:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/controls/controls.cpp

index 9275dc8041ee2dd8c403646d75e40b2a59faad63..a5723dce31b15c292a387fbc81898bc5bb7760d1 100644 (file)
@@ -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(),