[Libreoffice-commits] core.git: vcl/qt5

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Nov 5 11:53:10 UTC 2018


 vcl/qt5/Qt5AccessibleWidget.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 65b7a0570c038f286bc034fdf5b7c28fd818db26
Author:     Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
AuthorDate: Mon Nov 5 12:04:31 2018 +0100
Commit:     Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
CommitDate: Mon Nov 5 12:52:10 2018 +0100

    qt a11y: Correct way to retrieve XAccessibleContext
    
    Change-Id: I6d9ae80daa7cc6f14868691ac499b897271d683a
    Reviewed-on: https://gerrit.libreoffice.org/62889
    Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
    Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>

diff --git a/vcl/qt5/Qt5AccessibleWidget.cxx b/vcl/qt5/Qt5AccessibleWidget.cxx
index c8d9f45ff7e9..51c575ad93bd 100644
--- a/vcl/qt5/Qt5AccessibleWidget.cxx
+++ b/vcl/qt5/Qt5AccessibleWidget.cxx
@@ -60,7 +60,7 @@ using namespace css::uno;
 Qt5AccessibleWidget::Qt5AccessibleWidget(const Reference<XAccessible> xAccessible)
     : m_xAccessible(xAccessible)
 {
-    Reference<XAccessibleContext> xContext(xAccessible, UNO_QUERY);
+    Reference<XAccessibleContext> xContext = xAccessible->getAccessibleContext();
     Reference<XAccessibleEventBroadcaster> xBroadcaster(xContext, UNO_QUERY);
     if (xBroadcaster.is())
     {


More information about the Libreoffice-commits mailing list