Kaydet (Commit) 10072ea4 authored tarafından Samuel Mehrbrodt's avatar Samuel Mehrbrodt

Fix crash when no key bindings are available

Change-Id: I89693a01bd3e89f6d4000901c01accf88b453691
Reviewed-on: https://gerrit.libreoffice.org/61232
Tested-by: Jenkins
Reviewed-by: 's avatarSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
üst b4c0a0ea
......@@ -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++)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment