Fixes how disabled wxDataViewToggle columns are displayed when control is disabled

This commit is contained in:
donovan6000
2019-03-25 18:02:41 -07:00
committed by GitHub
parent e292de4bb0
commit 7cd48f7db1

View File

@@ -1298,7 +1298,7 @@ bool wxDataViewToggleRenderer::Render( wxRect cell, wxDC *dc, int WXUNUSED(state
if (m_toggle)
flags |= wxCONTROL_CHECKED;
if (GetMode() != wxDATAVIEW_CELL_ACTIVATABLE ||
GetEnabled() == false)
!(GetOwner()->GetOwner()->IsEnabled() && GetEnabled()))
flags |= wxCONTROL_DISABLED;
// Ensure that the check boxes always have at least the minimal required