[Libreoffice-commits] core.git: vcl/qt5
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Nov 5 11:53:43 UTC 2018
vcl/qt5/Qt5AccessibleWidget.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 17a9318946ca3203380688de80ecf8b983554b1f
Author: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
AuthorDate: Mon Nov 5 12:43:52 2018 +0100
Commit: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
CommitDate: Mon Nov 5 12:52:30 2018 +0100
qt5 a11y: Fix crash
Change-Id: I908bf6bb54ced0a43069b1ac1928f0655d2bbe9f
Reviewed-on: https://gerrit.libreoffice.org/62890
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 51c575ad93bd..9773b2875050 100644
--- a/vcl/qt5/Qt5AccessibleWidget.cxx
+++ b/vcl/qt5/Qt5AccessibleWidget.cxx
@@ -666,7 +666,7 @@ QAccessibleInterface* Qt5AccessibleWidget::customFactory(const QString& classnam
if (classname == QLatin1String("Qt5XAccessible") && object)
{
Qt5XAccessible* pXAccessible = dynamic_cast<Qt5XAccessible*>(object);
- if (pXAccessible)
+ if (pXAccessible && pXAccessible->m_xAccessible.is())
return new Qt5AccessibleWidget(pXAccessible->m_xAccessible);
}
More information about the Libreoffice-commits
mailing list