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.
This commit is contained in:
Václav Slavík
2016-12-11 16:49:17 +01:00
committed by Václav Slavík
parent 61c8a7ca60
commit f7514467ae

View File

@@ -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;