summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-02-13 16:35:37 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-02-13 16:45:08 +0000
commitef428c448804defe899993d3a9a36411810c3ce6 (patch)
tree4f434124c4650241bf177fe8912dd78e79b13087 /vcl
parentd0b2d7a6c6e13243f63e8bcee7dc13acd8139f1c (diff)
use a11y description if offline help doesn't have an entry
Change-Id: I0090e10f6fa7b5e86be7ace8f1bd61f3f790fa11
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/window.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 25120bea663b..c93e194ab88c 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -3139,6 +3139,9 @@ const OUString& Window::GetHelpText() const
mpWindowImpl->mbHelpTextDynamic = false;
}
+ //Fallback to Window::GetAccessibleDescription without reentry to GetHelpText()
+ if (mpWindowImpl->maHelpText.isEmpty() && mpWindowImpl->mpAccessibleInfos && mpWindowImpl->mpAccessibleInfos->pAccessibleDescription)
+ return *mpWindowImpl->mpAccessibleInfos->pAccessibleDescription;
return mpWindowImpl->maHelpText;
}