diff options
-rw-r--r-- | accessibility/source/standard/vclxaccessibletoolboxitem.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/accessibility/source/standard/vclxaccessibletoolboxitem.cxx b/accessibility/source/standard/vclxaccessibletoolboxitem.cxx index 97b2ea1df433..a2aa1919f30c 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; |