diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-02-13 16:35:37 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-02-13 16:45:08 +0000 |
commit | ef428c448804defe899993d3a9a36411810c3ce6 (patch) | |
tree | 4f434124c4650241bf177fe8912dd78e79b13087 /vcl | |
parent | d0b2d7a6c6e13243f63e8bcee7dc13acd8139f1c (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.cxx | 3 |
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; } |