Adapt to 'premature' events being sent from editor controls (fixes datepicker editor...
authorJaakko Salli <jaakko.salli@dnainternet.net>
Sun, 14 Sep 2008 09:47:58 +0000 (09:47 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Sun, 14 Sep 2008 09:47:58 +0000 (09:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/propgrid.cpp

index b6bcd320bc0d1e7b58e79e08ee55c6d94f0349f6..46bb22f9ff9c123dfbe36ea14d52c21c2864d70e 100644 (file)
@@ -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();