]> git.saurik.com Git - wxWidgets.git/commitdiff
Avoid infinite recursion on Mac in comboctrl, and fix an uninitialized pointer in...
authorRobin Dunn <robin@alldunn.com>
Mon, 5 Sep 2011 20:08:04 +0000 (20:08 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 5 Sep 2011 20:08:04 +0000 (20:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69005 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/combocmn.cpp
src/propgrid/propgrid.cpp

index ff3563c2dbdb916f6feeb007c230b17a04416740..814dbd9a493fa67faa043729a97435ad95a8f630 100644 (file)
@@ -2034,6 +2034,8 @@ void wxComboCtrlBase::OnCharEvent(wxKeyEvent& event)
 
 void wxComboCtrlBase::OnFocusEvent( wxFocusEvent& event )
 {
+// On Mac, this leads to infinite recursion and eventually a crash 
+#ifndef __WXMAC__
     if ( event.GetEventType() == wxEVT_SET_FOCUS )
     {
         wxWindow* tc = GetTextCtrl();
@@ -2044,6 +2046,7 @@ void wxComboCtrlBase::OnFocusEvent( wxFocusEvent& event )
     }
 
     Refresh();
+#endif
 }
 
 void wxComboCtrlBase::OnIdleEvent( wxIdleEvent& WXUNUSED(event) )
index 5af8805a19e74fb1fd874ec80a12c311c25f15da..77a3209a50f3c5edd80c3c462fdc722c1fa6e839 100644 (file)
@@ -6227,6 +6227,7 @@ void wxPropertyGridEvent::Init()
     m_column = 1;
     m_canVeto = false;
     m_wasVetoed = false;
+    m_pg = NULL;
 }
 
 // -----------------------------------------------------------------------