diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-23 14:55:09 +0000 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2021-03-30 11:17:13 +0200 |
commit | b9de0b5d94a155ccd43e28841064e7c1b1f9ab1d (patch) | |
tree | aa73ad352cab38c71c3a0fad071c9f2cba1eba4f /vcl | |
parent | 0c708c9e1bdfacb771179947e27b4cf58fa72307 (diff) |
Related: tdf#141197 critical a11y warning
** (soffice:19098): CRITICAL **: 13:44:40.365:
AtkObject* atk_object_wrapper_ref(const com::sun::star::uno::Reference<com::sun::star::accessibility::XAccessible>&, bool):
assertion 'bool(rxAccessible)' failed
probably since...
commit cbc18cc904c652a936c4b68fba4d975bd89b5abd
Date: Mon Nov 23 21:03:28 2020 +0100
tdf#138425 vcl/gtk activate main menu in UpdateFull
Change-Id: Ieb181e02bb0d2a907aec8534349ec2a80fd9c7e3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112957
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/menu.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx index 7d4a34678ada..792f3aed5ff5 100644 --- a/vcl/source/window/menu.cxx +++ b/vcl/source/window/menu.cxx @@ -1302,7 +1302,7 @@ css::uno::Reference<css::accessibility::XAccessible> Menu::GetAccessible() // Since PopupMenu are sometimes shared by different instances of MenuBar, the mxAccessible member gets // overwritten and may contain a disposed object when the initial menubar gets set again. So use the // mxAccessible member only for sub menus. - if ( pStartedFrom ) + if (pStartedFrom && pStartedFrom != this) { for ( sal_uInt16 i = 0, nCount = pStartedFrom->GetItemCount(); i < nCount; ++i ) { |