Kaydet (Commit) b058abc3 authored tarafından Michael Stahl's avatar Michael Stahl

AtkListener::updateChildList: assert when getAccessibleChild ...

... throws IndexOutOfBoundsException, since it's not supposed to happen.

Change-Id: I876e6cede88f86d12543d3ce65e1b0a0ca5389a7
üst 8960f0de
...@@ -114,7 +114,14 @@ void AtkListener::updateChildList(accessibility::XAccessibleContext* pContext) ...@@ -114,7 +114,14 @@ void AtkListener::updateChildList(accessibility::XAccessibleContext* pContext)
m_aChildList.resize(nChildren); m_aChildList.resize(nChildren);
for(sal_Int32 n = 0; n < nChildren; n++) for(sal_Int32 n = 0; n < nChildren; n++)
{ {
m_aChildList[n] = pContext->getAccessibleChild(n); try
{
m_aChildList[n] = pContext->getAccessibleChild(n);
}
catch (lang::IndexOutOfBoundsException const&)
{
assert(false); // not consistent with getAccessibleChildCount
}
OSL_ASSERT(m_aChildList[n].is()); OSL_ASSERT(m_aChildList[n].is());
} }
} }
......
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