Disabling also checks if control is disabled

This commit is contained in:
donovan6000
2019-03-25 17:59:56 -07:00
committed by GitHub
parent d7f3f96cac
commit e292de4bb0

View File

@@ -1067,7 +1067,7 @@ wxDataViewCustomRendererBase::RenderText(const wxString& text,
int flags = 0;
if ( state & wxDATAVIEW_CELL_SELECTED )
flags |= wxCONTROL_SELECTED;
if ( !GetEnabled() )
if ( !(GetOwner()->GetOwner()->IsEnabled() && GetEnabled()) )
flags |= wxCONTROL_DISABLED;
// Notice that we intentionally don't use any alignment here: it is not