Test for m_pPropGrid in wxPropertyGridPageState::DoClear()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user