]> git.saurik.com Git - wxWidgets.git/commitdiff
In wxPropertyGridPageState::DoDelete(), clear grid's m_propHover if it matches the...
authorJaakko Salli <jaakko.salli@dnainternet.net>
Fri, 31 Jul 2009 14:03:42 +0000 (14:03 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Fri, 31 Jul 2009 14:03:42 +0000 (14:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/propgridpagestate.cpp

index 1861b67ef65685281d2061c1bd8f2999f90eca2f..57668950d118aa2808b3e27ceacc50a6e5220e41 100644 (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;