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:
Jaakko Salli
2009-09-01 13:13:58 +00:00
parent 890defb4f3
commit 9a30da4d1f
2 changed files with 8 additions and 2 deletions

View File

@@ -217,7 +217,9 @@ wxPGProperty* wxPropertyGridInterface::GetSelection() const
bool wxPropertyGridInterface::ClearSelection( bool validation )
{
bool res = DoClearSelection(validation, wxPG_SEL_DONT_SEND_EVENT);
GetPropertyGrid()->Refresh();
wxPropertyGrid* pg = GetPropertyGrid();
if ( pg )
pg->Refresh();
return res;
}