]> git.saurik.com Git - wxWidgets.git/commitdiff
Test for m_pPropGrid in wxPropertyGridPageState::DoClear()
authorJaakko Salli <jaakko.salli@dnainternet.net>
Tue, 17 Feb 2009 18:07:33 +0000 (18:07 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Tue, 17 Feb 2009 18:07:33 +0000 (18:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/propgridpagestate.cpp

index a0aeef77886171bd0ae252ae53e47d19de825566..0e34d126fbb573f37f711d89da9237ea07dadce0 100644 (file)
@@ -268,7 +268,7 @@ void wxPropertyGridPageState::InitNonCatMode()
 
 void wxPropertyGridPageState::DoClear()
 {
-    if ( m_pPropGrid->GetState() == this  )
+    if ( m_pPropGrid && m_pPropGrid->GetState() == this  )
     {
         m_pPropGrid->ClearSelection(false);
     }