diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-02-07 14:22:01 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-02-07 14:36:26 +0100 |
commit | b058abc39aaa34d81ebb36cc2405b221fb055418 (patch) | |
tree | 7fde57bb2903b2bdc9182b7521932c3f04452454 /vcl | |
parent | 8960f0de2e8b957f383ec659b308cc459dcf475b (diff) |
AtkListener::updateChildList: assert when getAccessibleChild ...
... throws IndexOutOfBoundsException, since it's not supposed to happen.
Change-Id: I876e6cede88f86d12543d3ce65e1b0a0ca5389a7
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk/a11y/atklistener.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/vcl/unx/gtk/a11y/atklistener.cxx b/vcl/unx/gtk/a11y/atklistener.cxx index 0e949081dd0d..8d1b1bd616c8 100644 --- a/vcl/unx/gtk/a11y/atklistener.cxx +++ b/vcl/unx/gtk/a11y/atklistener.cxx @@ -114,7 +114,14 @@ void AtkListener::updateChildList(accessibility::XAccessibleContext* pContext) m_aChildList.resize(nChildren); 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()); } } |