Fixes how disabled wxDataViewToggle columns are displayed when control is disabled
This commit is contained in:
@@ -1298,7 +1298,7 @@ bool wxDataViewToggleRenderer::Render( wxRect cell, wxDC *dc, int WXUNUSED(state
|
|||||||
if (m_toggle)
|
if (m_toggle)
|
||||||
flags |= wxCONTROL_CHECKED;
|
flags |= wxCONTROL_CHECKED;
|
||||||
if (GetMode() != wxDATAVIEW_CELL_ACTIVATABLE ||
|
if (GetMode() != wxDATAVIEW_CELL_ACTIVATABLE ||
|
||||||
GetEnabled() == false)
|
!(GetOwner()->GetOwner()->IsEnabled() && GetEnabled()))
|
||||||
flags |= wxCONTROL_DISABLED;
|
flags |= wxCONTROL_DISABLED;
|
||||||
|
|
||||||
// Ensure that the check boxes always have at least the minimal required
|
// Ensure that the check boxes always have at least the minimal required
|
||||||
|
Reference in New Issue
Block a user