When wxPGProperty is un-attached from wxPropertyGrid, keep its 'default' cell references invalid/NULL (fixes #12552)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2010-10-10 09:34:29 +00:00
parent b3ecee8d12
commit ed8b46bba3
4 changed files with 68 additions and 9 deletions

View File

@@ -1934,6 +1934,8 @@ void wxPropertyGridPageState::DoDelete( wxPGProperty* item, bool doDelete )
// We can actually delete it now
if ( doDelete )
delete item;
else
item->OnDetached(this, pg);
m_itemsAdded = 1; // Not a logical assignment (but required nonetheless).