From f7514467ae36ec9d734ffe3719ca5d7171358dfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Va=CC=81clav=20Slavi=CC=81k?= Date: Sun, 11 Dec 2016 16:49:17 +0100 Subject: [PATCH] Don't use wxACC_STATE_SYSTEM_READONLY for wxDVC items Items in wxDataViewCtrl are only read-only if there's no editable column, in which case all items are read-only. This flag is only useful for accessibility if only some of the items in the list are read-only; if all of them are, it's just noise. --- src/generic/datavgen.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index 7c13c9b497..e2e3371947 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -6181,15 +6181,6 @@ wxAccStatus wxDataViewCtrlAccessible::GetState(int childId, long* state) } } } - - wxDataViewItem item = dvWnd->GetItemByRow(rowNum); - if ( item.IsOk() ) - { - if ( !dvWnd->HasEditableColumn(item) ) - { - st |= wxACC_STATE_SYSTEM_READONLY; - } - } } *state = st; return wxACC_OK;