]> git.saurik.com Git - wxWidgets.git/blobdiff - src/propgrid/propgridpagestate.cpp
Add wxDataViewRendererBase::PrepareForItem() helper.
[wxWidgets.git] / src / propgrid / propgridpagestate.cpp
index 1ae7c025d247d5cfd2188c3351b6a4cbc91ff38f..8ec1e3a1a5697a40aaa1eda3a3c24fba89107d68 100644 (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).