]> git.saurik.com Git - wxWidgets.git/blobdiff - src/propgrid/propgridpagestate.cpp
applying patch, fixes #10523
[wxWidgets.git] / src / propgrid / propgridpagestate.cpp
index a0aeef77886171bd0ae252ae53e47d19de825566..0e34d126fbb573f37f711d89da9237ea07dadce0 100644 (file)
@@ -268,7 +268,7 @@ void wxPropertyGridPageState::InitNonCatMode()
 
 void wxPropertyGridPageState::DoClear()
 {
 
 void wxPropertyGridPageState::DoClear()
 {
-    if ( m_pPropGrid->GetState() == this  )
+    if ( m_pPropGrid && m_pPropGrid->GetState() == this  )
     {
         m_pPropGrid->ClearSelection(false);
     }
     {
         m_pPropGrid->ClearSelection(false);
     }