In wxPropertyGridPageState::DoDelete(), clear grid's m_propHover if it matches the property being deleted

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2009-07-31 14:03:42 +00:00
parent c6d61e6047
commit 4d18ddc7bf

View File

@@ -1780,6 +1780,12 @@ void wxPropertyGridPageState::DoDelete( wxPGProperty* item, bool doDelete )
(parent->IsCategory() || parent->IsRoot()) )
m_dictName.erase(item->GetBaseName());
wxPropertyGrid* pg = GetGrid();
// We need to clear parent grid's m_propHover, if it matches item
if ( pg && pg->m_propHover == item )
pg->m_propHover = NULL;
// We can actually delete it now
if ( doDelete )
delete item;