summaryrefslogtreecommitdiff
path: root/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'accessibility/source/standard/vclxaccessibletoolboxitem.cxx')
-rw-r--r--accessibility/source/standard/vclxaccessibletoolboxitem.cxx16
1 files changed, 10 insertions, 6 deletions
diff --git a/accessibility/source/standard/vclxaccessibletoolboxitem.cxx b/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
index ff903d166c02..7b7cf5949429 100644
--- a/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
+++ b/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
@@ -130,13 +130,17 @@ OUString VCLXAccessibleToolBoxItem::GetText( bool _bAsName )
sRet = m_pToolBox->GetItemText( m_nItemId );
if (sRet.isEmpty())
{
- Window* pItemWindow = m_pToolBox->GetItemWindow( m_nItemId );
- if ( m_nRole == AccessibleRole::PANEL && pItemWindow && pItemWindow->GetAccessible().is() &&
- pItemWindow->GetAccessible()->getAccessibleContext().is() )
+ sRet = m_pToolBox->GetQuickHelpText( m_nItemId );
+ if (sRet.isEmpty())
{
- OUString sWinText = pItemWindow->GetAccessible()->getAccessibleContext()->getAccessibleName();
- if (!sWinText.isEmpty())
- sRet = sWinText;
+ Window* pItemWindow = m_pToolBox->GetItemWindow( m_nItemId );
+ if ( m_nRole == AccessibleRole::PANEL && pItemWindow && pItemWindow->GetAccessible().is() &&
+ pItemWindow->GetAccessible()->getAccessibleContext().is() )
+ {
+ OUString sWinText = pItemWindow->GetAccessible()->getAccessibleContext()->getAccessibleName();
+ if (!sWinText.isEmpty())
+ sRet = sWinText;
+ }
}
}