Fixed a bug: Disabling a property didn't work properly if a child item was selected.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2011-05-09 19:44:40 +00:00
parent d476d8541a
commit a6ca624a27
4 changed files with 20 additions and 1 deletions

View File

@@ -2600,7 +2600,7 @@ void wxPropertyGrid::DrawItems( const wxPGProperty* p1, const wxPGProperty* p2 )
void wxPropertyGrid::RefreshProperty( wxPGProperty* p )
{
if ( m_pState->DoIsPropertySelected(p) )
if ( m_pState->DoIsPropertySelected(p) || p->IsChildSelected() )
{
// NB: We must copy the selection.
wxArrayPGProperty selection = m_pState->m_selection;