[Libreoffice-commits] core.git: accessibility/source
Julien Nabet
serval2412 at yahoo.fr
Wed Feb 26 13:31:38 PST 2014
accessibility/source/standard/vclxaccessibletoolboxitem.cxx | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
New commits:
commit 97d4f7e07462cbc33e8ebf0bc2bbf8a17c232d50
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Wed Feb 26 22:28:45 2014 +0100
Let's use RADIO_BUTTON and CHECK_BUTTON roles
Thank you Caolán and Niklas for your support!
Change-Id: Ied978b36cc309b2668889d878a309d1a1400633a
diff --git a/accessibility/source/standard/vclxaccessibletoolboxitem.cxx b/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
index 97b2ea1..a2aa191 100644
--- a/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
+++ b/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
@@ -88,12 +88,14 @@ VCLXAccessibleToolBoxItem::VCLXAccessibleToolBoxItem( ToolBox* _pToolBox, sal_In
(( nBits & TIB_DROPDOWNONLY ) == TIB_DROPDOWNONLY)
)
m_nRole = AccessibleRole::BUTTON_DROPDOWN;
- else if (
- ( ( nBits & TIB_CHECKABLE ) == TIB_CHECKABLE ) ||
+ else if (( nBits & TIB_CHECKABLE ) == TIB_CHECKABLE )
+ m_nRole = AccessibleRole::CHECK_BUTTON;
+ else if
+ (
( ( nBits & TIB_RADIOCHECK ) == TIB_RADIOCHECK ) ||
( ( nBits & TIB_AUTOCHECK ) == TIB_AUTOCHECK )
- )
- m_nRole = AccessibleRole::TOGGLE_BUTTON;
+ )
+ m_nRole = AccessibleRole::RADIO_BUTTON;
else if ( m_pToolBox->GetItemWindow( m_nItemId ) )
m_nRole = AccessibleRole::PANEL;
break;
More information about the Libreoffice-commits
mailing list