[Libreoffice-commits] core.git: accessibility/source

Jacobo Aragunde Pérez jaragunde at igalia.com
Mon Jun 16 08:41:29 PDT 2014


 accessibility/source/standard/vclxaccessibletoolboxitem.cxx |   16 +++++++-----
 1 file changed, 10 insertions(+), 6 deletions(-)

New commits:
commit 9b2582064882bb1a1caea72fe7754b8872a16413
Author: Jacobo Aragunde Pérez <jaragunde at igalia.com>
Date:   Mon Jun 16 17:28:55 2014 +0200

    fdo#74681: quick help may be used as accessible text
    
    In case a tool box item does not contain some text to be used as the
    accessible item name, use the quick help text.
    
    Change-Id: I9caadb0989729787d8572f4007652bcab02b0412

diff --git a/accessibility/source/standard/vclxaccessibletoolboxitem.cxx b/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
index 5f08a4f..f0a257f 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;
+                }
             }
         }
 


More information about the Libreoffice-commits mailing list