sw a11y: Use more concrete type in SwAccessibleTable::DisposeChild

Use the more concrete SwAccessibleContext instead of the
abstract XAccessible UNO interface for the local
variable.

Change-Id: I8ba838163a683c088886ee695188a779aacf6b01
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210620
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
This commit is contained in:
Michael Weghorn
2026-09-10 18:32:30 +02:00
parent aa1723e64b
commit 2e9dd9a0df
+2 -2
View File
@@ -1098,8 +1098,8 @@ void SwAccessibleTable::DisposeChild( const SwAccessibleChild& rChildFrameOrObj,
// the map, and we have to call our superclass.
// The other situation is that we have been call by a call to get notified
// about its change. We then must not call the superclass
uno::Reference< XAccessible > xAcc( GetMap()->GetContext( pFrame, false ) );
if( !xAcc.is() )
rtl::Reference<SwAccessibleContext> pAcc(GetMap()->GetContextImpl(pFrame, false));
if (!pAcc.is())
SwAccessibleContext::DisposeChild( rChildFrameOrObj, bRecursive, bCanSkipInvisible );
}