[Libreoffice-commits] core.git: vcl/qt5
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Oct 4 06:50:45 UTC 2018
vcl/qt5/Qt5AccessibleWidget.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 10072ea419ade05b61fd42e14f6be7d201134280
Author: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
AuthorDate: Tue Oct 2 10:55:21 2018 +0200
Commit: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
CommitDate: Thu Oct 4 08:50:21 2018 +0200
Fix crash when no key bindings are available
Change-Id: I89693a01bd3e89f6d4000901c01accf88b453691
Reviewed-on: https://gerrit.libreoffice.org/61232
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
diff --git a/vcl/qt5/Qt5AccessibleWidget.cxx b/vcl/qt5/Qt5AccessibleWidget.cxx
index ffbca8d0338e..0e783dcb3808 100644
--- a/vcl/qt5/Qt5AccessibleWidget.cxx
+++ b/vcl/qt5/Qt5AccessibleWidget.cxx
@@ -684,6 +684,9 @@ QStringList Qt5AccessibleWidget::keyBindingsForAction(const QString& actionName)
Reference<XAccessibleKeyBinding> xKeyBinding
= xAccessibleAction->getAccessibleActionKeyBinding(index);
+ if (!xKeyBinding.is())
+ return keyBindings;
+
int count = xKeyBinding->getAccessibleKeyBindingCount();
for (int i = 0; i < count; i++)
{
More information about the Libreoffice-commits
mailing list