diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2023-08-03 15:48:48 +0100 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2023-08-04 10:38:08 +0200 |
commit | b4b79640ba2acbfecd4b2aa19a8222ff5666156b (patch) | |
tree | 6db41ae45049062d43ff033573de22ca5538c812 /winaccessibility | |
parent | 228061cdf5571814c773eaab9b46a4f9a80071f4 (diff) |
tdf#156473 wina11y: Fix invalid write due to row/col mismatch
With the grid control now reporting row/column headers
due to the previous tdf#156473-related commits, this
copy-paste mistake in
commit 8a4271e168f70f9147b567189c1770a243e7fcb1
Author: Michael Weghorn <m.weghorn@posteo.de>
Date: Fri Aug 5 09:49:02 2022 +0100
wina11y: Implement IAccessibleTableCell::get{column,row}HeaderCells
was now causing hard to debug crashes when moving around
in the table from the tdf#156473 sample macro with
the NVDA screen reader running on Windows.
Change-Id: I9fa30c1181d0fd21a85a73fd660c49667850d82b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155311
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
(cherry picked from commit 47917019999968815133f88778cb2566ffbe9cd6)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155296
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'winaccessibility')
-rw-r--r-- | winaccessibility/source/UAccCOM/AccTableCell.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winaccessibility/source/UAccCOM/AccTableCell.cxx b/winaccessibility/source/UAccCOM/AccTableCell.cxx index 1b126404456a..0a04683ac109 100644 --- a/winaccessibility/source/UAccCOM/AccTableCell.cxx +++ b/winaccessibility/source/UAccCOM/AccTableCell.cxx @@ -215,7 +215,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTableCell::get_rowHeaderCells(IUnknown*** assert(bOK && "Couldn't retrieve IAccessible object for cell."); pIAccessible->AddRef(); - (*cellAccessibles)[nRow] = pIAccessible; + (*cellAccessibles)[nCol] = pIAccessible; } return S_OK; } |