winaccessibility/source/UAccCOM/AccTableCell.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b4b79640ba2acbfecd4b2aa19a8222ff5666156b
Author:     Michael Weghorn <[email protected]>
AuthorDate: Thu Aug 3 15:48:48 2023 +0100
Commit:     Michael Stahl <[email protected]>
CommitDate: Fri Aug 4 10:38:08 2023 +0200

    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 <[email protected]>
        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 <[email protected]>
    (cherry picked from commit 47917019999968815133f88778cb2566ffbe9cd6)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155296
    Reviewed-by: Michael Stahl <[email protected]>

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

Reply via email to