vcl/qt5/QtAccessibleWidget.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit 6ed491e6ce23e08e7da20b8ea9f1f0b5bb3b4654 Author: Michael Weghorn <[email protected]> AuthorDate: Wed Oct 1 15:34:17 2025 +0200 Commit: Michael Weghorn <[email protected]> CommitDate: Wed Oct 1 17:20:33 2025 +0200 qt a11y: Report locale independent of XAccessibleExtendedAttributes The locale is available via the XAccessibleContext, so can be reported independent of whether or not the XAccessibleExtendedAttributes interface is implemented. Move the corresponding logic above the XAccessibleExtendedAttributes check. Change-Id: Ia2132529f252a239903c7b45972594e65ac124d9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191733 Tested-by: Jenkins Reviewed-by: Michael Weghorn <[email protected]> diff --git a/vcl/qt5/QtAccessibleWidget.cxx b/vcl/qt5/QtAccessibleWidget.cxx index 911ea85776e7..ea44119d0934 100644 --- a/vcl/qt5/QtAccessibleWidget.cxx +++ b/vcl/qt5/QtAccessibleWidget.cxx @@ -949,10 +949,6 @@ QHash<QAccessible::Attribute, QVariant> QtAccessibleWidget::attributes() const if (!xContext.is()) return {}; - Reference<XAccessibleExtendedAttributes> xAttributes(xContext, UNO_QUERY); - if (!xAttributes.is()) - return {}; - QHash<QAccessible::Attribute, QVariant> aQtAttrs; #if QT_VERSION >= QT_VERSION_CHECK(6, 10, 0) @@ -961,6 +957,10 @@ QHash<QAccessible::Attribute, QVariant> QtAccessibleWidget::attributes() const aQtAttrs.insert(QAccessible::Attribute::Locale, aQLocale); #endif + Reference<XAccessibleExtendedAttributes> xAttributes(xContext, UNO_QUERY); + if (!xAttributes.is()) + return aQtAttrs; + const OUString sAttrs = xAttributes->getExtendedAttributes(); sal_Int32 nIndex = 0; do
