| @@ -569,9 +569,15 @@ std::unique_ptr<AccessibilityHandler> TableListBox::createAccessibilityHandler() | |||||
| const AccessibilityHandler* getCellHandler (int row, int column) const override | const AccessibilityHandler* getCellHandler (int row, int column) const override | ||||
| { | { | ||||
| if (isPositiveAndBelow (row, getNumRows()) && isPositiveAndBelow (column, getNumColumns())) | |||||
| if (auto* cellComponent = tableListBox.getCellComponent (tableListBox.getHeader().getColumnIdOfIndex (column, false), row)) | |||||
| return cellComponent->getAccessibilityHandler(); | |||||
| if (isPositiveAndBelow (row, getNumRows())) | |||||
| { | |||||
| if (isPositiveAndBelow (column, getNumColumns())) | |||||
| if (auto* cellComponent = tableListBox.getCellComponent (tableListBox.getHeader().getColumnIdOfIndex (column, false), row)) | |||||
| return cellComponent->getAccessibilityHandler(); | |||||
| if (auto* rowComp = tableListBox.getComponentForRowNumber (row)) | |||||
| return rowComp->getAccessibilityHandler(); | |||||
| } | |||||
| return nullptr; | return nullptr; | ||||
| } | } | ||||