summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/source/extended/accessiblelistboxentry.cxx29
1 files changed, 15 insertions, 14 deletions
diff --git a/accessibility/source/extended/accessiblelistboxentry.cxx b/accessibility/source/extended/accessiblelistboxentry.cxx
index 245cd5293c47..7385f5233e35 100644
--- a/accessibility/source/extended/accessiblelistboxentry.cxx
+++ b/accessibility/source/extended/accessiblelistboxentry.cxx
@@ -531,24 +531,25 @@ namespace accessibility
switch(getAccessibleRole())
{
case AccessibleRole::LABEL:
- pStateSetHelper->AddState( AccessibleStateType::TRANSIENT );
- pStateSetHelper->AddState( AccessibleStateType::SELECTABLE );
- pStateSetHelper->AddState( AccessibleStateType::ENABLED );
- if ( getListBox()->IsInplaceEditingEnabled() )
- pStateSetHelper->AddState( AccessibleStateType::EDITABLE );
- if ( IsShowing_Impl() )
- pStateSetHelper->AddState( AccessibleStateType::SHOWING );
+ pStateSetHelper->AddState( AccessibleStateType::TRANSIENT );
+ pStateSetHelper->AddState( AccessibleStateType::SELECTABLE );
+ pStateSetHelper->AddState( AccessibleStateType::ENABLED );
+ if (getListBox()->IsInplaceEditingEnabled())
+ pStateSetHelper->AddState( AccessibleStateType::EDITABLE );
+ if (IsShowing_Impl())
+ pStateSetHelper->AddState( AccessibleStateType::SHOWING );
break;
case AccessibleRole::CHECK_BOX:
- pStateSetHelper->AddState( AccessibleStateType::TRANSIENT );
- pStateSetHelper->AddState( AccessibleStateType::SELECTABLE );
- pStateSetHelper->AddState( AccessibleStateType::ENABLED );
- if ( IsShowing_Impl() )
- pStateSetHelper->AddState( AccessibleStateType::SHOWING );
+ pStateSetHelper->AddState( AccessibleStateType::TRANSIENT );
+ pStateSetHelper->AddState( AccessibleStateType::SELECTABLE );
+ pStateSetHelper->AddState( AccessibleStateType::ENABLED );
+ if (IsShowing_Impl())
+ pStateSetHelper->AddState( AccessibleStateType::SHOWING );
break;
}
- getListBox()->FillAccessibleEntryStateSet(
- getListBox()->GetEntryFromPath( m_aEntryPath ), *pStateSetHelper );
+ SvTreeListEntry *pEntry = getListBox()->GetEntryFromPath(m_aEntryPath);
+ if (pEntry)
+ getListBox()->FillAccessibleEntryStateSet(pEntry, *pStateSetHelper);
}
else
pStateSetHelper->AddState( AccessibleStateType::DEFUNC );