Kaydet (Commit) 0c3211b1 authored tarafından Caolán McNamara's avatar Caolán McNamara

crash on exit from xml form document with accessibility enabled

Change-Id: If60075b939569cf339f7ccf7e39e513fbe1f74bf
üst a0a90389
......@@ -1472,7 +1472,8 @@ sal_Bool SvListView::IsSelected( SvTreeListEntry* pEntry ) const
{
DBG_ASSERT(pEntry,"IsExpanded:No Entry");
SvDataTable::const_iterator itr = maDataTable.find(pEntry );
DBG_ASSERT(itr != maDataTable.end(),"Entry not in Table");
if (itr == maDataTable.end())
return false;
return itr->second->IsSelected();
}
......@@ -1487,7 +1488,8 @@ void SvListView::SetEntryFocus( SvTreeListEntry* pEntry, sal_Bool bFocus )
const SvViewDataEntry* SvListView::GetViewData( const SvTreeListEntry* pEntry ) const
{
SvDataTable::const_iterator itr = maDataTable.find( const_cast<SvTreeListEntry*>(pEntry) );
DBG_ASSERT(itr != maDataTable.end(),"Entry not in model or wrong view");
if (itr == maDataTable.end())
return NULL;
return itr->second;
}
......
......@@ -4081,8 +4081,8 @@ void SvTreeListBox::FillAccessibleEntryStateSet( SvTreeListEntry* pEntry, ::utl:
SvViewDataEntry* pViewDataNewCur = 0;
if( pEntry )
{
pViewDataNewCur= GetViewDataEntry(pEntry);
if(pViewDataNewCur->HasFocus())
pViewDataNewCur = GetViewDataEntry(pEntry);
if (pViewDataNewCur && pViewDataNewCur->HasFocus())
rStateSet.AddState( AccessibleStateType::FOCUSED );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment