Fixed a severe crash bug
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1349,13 +1349,17 @@ private:
|
||||
// Cannot be GetGrid() due to ambiguity issues.
|
||||
wxPropertyGrid* GetPropertyGrid()
|
||||
{
|
||||
if ( !m_pState )
|
||||
return NULL;
|
||||
return m_pState->GetGrid();
|
||||
}
|
||||
|
||||
// Cannot be GetGrid() due to ambiguity issues.
|
||||
const wxPropertyGrid* GetPropertyGrid() const
|
||||
{
|
||||
return (const wxPropertyGrid*) m_pState->GetGrid();
|
||||
if ( !m_pState )
|
||||
return NULL;
|
||||
return static_cast<const wxPropertyGrid*>(m_pState->GetGrid());
|
||||
}
|
||||
#endif // #ifndef SWIG
|
||||
|
||||
|
Reference in New Issue
Block a user