From dce297343e6c899be88444f2577a85590d4b78db Mon Sep 17 00:00:00 2001 From: Jaakko Salli Date: Sun, 14 Sep 2008 09:47:58 +0000 Subject: [PATCH] Adapt to 'premature' events being sent from editor controls (fixes datepicker editor crash) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/propgrid/propgrid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/propgrid/propgrid.cpp b/src/propgrid/propgrid.cpp index b6bcd320bc..46bb22f9ff 100644 --- a/src/propgrid/propgrid.cpp +++ b/src/propgrid/propgrid.cpp @@ -3307,7 +3307,7 @@ void wxPropertyGrid::OnCustomEditorEvent( wxCommandEvent &event ) } } - if ( !buttonWasHandled ) + if ( wnd && !buttonWasHandled ) { // First call editor class' event handler. const wxPGEditor* editor = selected->GetEditorClass(); -- 2.50.0